Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 2.0
ToolTip Class
ToolTip Methods
Show Method
 Show Method (String, IWin32Window, ...

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
.NET Framework Class Library
ToolTip.Show Method (String, IWin32Window, Int32, Int32)

Note: This method is new in the .NET Framework version 2.0.

Sets the ToolTip text associated with the specified control, and then displays the ToolTip modally at the specified relative position.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

Visual Basic (Declaration)
Public Sub Show ( _
    text As String, _
    window As IWin32Window, _
    x As Integer, _
    y As Integer _
)
Visual Basic (Usage)
Dim instance As ToolTip
Dim text As String
Dim window As IWin32Window
Dim x As Integer
Dim y As Integer

instance.Show(text, window, x, y)
C#
public void Show (
    string text,
    IWin32Window window,
    int x,
    int y
)
C++
public:
void Show (
    String^ text, 
    IWin32Window^ window, 
    int x, 
    int y
)
J#
public void Show (
    String text, 
    IWin32Window window, 
    int x, 
    int y
)
JScript
public function Show (
    text : String, 
    window : IWin32Window, 
    x : int, 
    y : int
)

Parameters

text

A String containing the new ToolTip text.

window

The Control to display the ToolTip for.

x

The horizontal offset, in pixels, relative to the upper-left corner of the associated control window, to display the ToolTip.

y

The vertical offset, in pixels, relative to the upper-left corner of the associated control window, to display the ToolTip.

This version of the overloaded Show method operates identically to the Show(String,IWin32Window,Point) version, except that the offset is specified as separate x- and y-coordinates instead of a Point.

Applications running in partial trust must assert the AllWindows permission to use this method, as Show can control the display and location of a ToolTip independent of user action.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker