Page 1 of 1

Tooltip - Showing tip without cursor

Posted: Fri May 28, 2010 5:31 pm
by NoWayIn
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
Code: Select all
ToolTip1.Show("Your Text", Your Control, Duration)
Okay so let me explain it if you don't understand.

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

Re: Tooltip - Showing tip without cursor

Posted: Sun Jun 06, 2010 9:13 am
by Smiley
That could come in handy for notifications. cooll;

Re: Tooltip - Showing tip without cursor

Posted: Sat Jun 12, 2010 7:11 pm
by Lewis
This is a great snippit code :)