mouse over

C

cody

What are the yellowish popups that appear when you mouse over certain
objects. An example are the descriptions that appear in VS2005 when
hover your mouse over controls in the toolbox. I'd like to implement
these on a mouse over of a picture box. I couldn't find anything
looking through previous posts. Any help is greatly appreciated.
 
A

Andreas Mueller

What are the yellowish popups that appear when you mouse over certain
objects. An example are the descriptions that appear in VS2005 when
hover your mouse over controls in the toolbox. I'd like to implement
these on a mouse over of a picture box. I couldn't find anything
looking through previous posts. Any help is greatly appreciated.
Its called a tooltip:

PictureBox box = ...;

// add a member to your class
System.WinForms.ToolTip toolTip = new System.WinForms.ToolTip();

// init tooltip, e.g in the ctor:
toolTip.AutoPopDelay = 5000;
toolTip.InitialDelay = 1000;
toolTip.ReshowDelay = 500;
toolTip.ShowAlways = true;

toolTip.SetToolTip(box, "This is a PictureBox");


HTH,
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top