OK, folks... I know this will sound dumb, and maybe it is (cuz I'm suuuuch a terrible VB.NET programmer)... but I've got a relatively simple applicaiton that dynamically generates a bunch of buttons on a form. I dynamically associate a unique tool tip with each button.
Here's the problem: The tool tip works (that is, it correctly appears), but only if the main form has focus. If the form doesn't have focus, I can mouse over any of the buttons, the button properly "highlights", but the tool tip does not appear.
I've tried VB.NET 2005 and 2008, with Framework versions 2.0 and 3.5 -- No change in behavior.
I'm using the "automagic" tooltip class that's associated with the main form... and setting the tooltip within a property "setter" (along with doing a bunch of other stuff) for the button:
Form1.ToolTip1.SetToolTip(Me, value)
Form1.ToolTip1.Active = True
A google search shows a couple of other reports of this problem, but no resolutions.
I'm sure there's something simple to fix this... and it turns-out the type of app I'm writing REALLY needs these tool tips to show when the form doesn't have focus.
Any help appreciated,
Peter
Loading
PeterPosted Jul 20, 2008, 10:54 AM
Just a few minutes more work and I solved my problem. And thanks for your reply, Khan... This reply originally overlapped with yours. Guess I shoulda "RTM"ed a bit more closely, huh??
For the archives (and for similar VB.NET dummies like me): If you want your tooltips to show up when the parent form does NOT have focus, you simply set the tooltip property "ShowAlways" to true:
Form1.ToolTip1.ShowAlways = True
It really IS that simple.
And to think I struggled with this for several hours on several different occaisions.
Duh!
Peter
(I should stick to writing Windows device drivers, which is that I do for a living, from now on)
(editing to thank Khan for his reply)
ArshadPosted Jul 20, 2008, 10:52 AM
Hi Peter just check the URl that has given below
http://msdn.microsoft.com/en-us/library/system.windows.forms.tooltip(VS.80).aspx
I hope this will hepl you, Thanks