Tooltip - Showing tip without cursor
Posted: Fri May 28, 2010 5:31 pm
You know how when you use a ToolTip you would need to hover your house over the control to show?
Well I'll show you how to show the tip on any control you want without needing to hover your mouse over it.
First, add a ToolTip into your project - You don't have to edit anything.
Now use this code to show the tip over any control you want
Where it say Your Text replace that with what you want your tip to say, maybe something like "Hello"
Where it say Your Control just replace that with the control you want it to show on, for example if you want the tip to show over button1 you would replace Your Control With Button1
Where it say Duration you would just put in how long you want the tip to last. 1000 = 1 second
Well I'll show you how to show the tip on any control you want without needing to hover your mouse over it.
First, add a ToolTip into your project - You don't have to edit anything.
Now use this code to show the tip over any control you want
Code: Select all
Okay so let me explain it if you don't understand.ToolTip1.Show("Your Text", Your Control, Duration)
Where it say Your Text replace that with what you want your tip to say, maybe something like "Hello"
Where it say Your Control just replace that with the control you want it to show on, for example if you want the tip to show over button1 you would replace Your Control With Button1
Where it say Duration you would just put in how long you want the tip to last. 1000 = 1 second