Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Description box on mouse over event

Status
Not open for further replies.

r3b00t

Technical User
Aug 13, 2002
45
0
0
GB
Hi Guys

What code would i need for a description box to appear when the mouse is over an object?

Sorry if this is vague but i dont know how else to describe it!

Cheers

r3b00t
 
from MSDN:

ToolTipText Property


Returns or sets a ToolTip.

Syntax

object.ToolTipText [= string]

The ToolTipText property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
string A string associated with an object in the Applies To list. that appears in a small rectangle below the object when the user's cursor hovers over the object at run time for about one second.


Remarks

If you use only an image to label an object, you can use this property to explain each object with a few words.

At design time you can set the ToolTipText property string in the control's properties dialog box.

For the Toolbar and TabStrip controls, you must set the ShowTips property to True to display ToolTips.


 
Thanx Justin, didnt realise it was that simple!

Cheers

r3b00t
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top