Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / August 2007

Tip: Looking for answers? Try searching our database.

Buggy Tooltip?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jonny - 30 Aug 2007 10:02 GMT
Hi,

Did anyone notice, the WinForm tooltip component cannot show again if
you click on a label?

The repro steps are quite simple:
Just create a simple Winform Application Project, put a label and a
tooltip component on the Form,
then set tooltip for the label control in designer.

Run the program, move cursor over the label, the tooltip shows up,
nice, now click the label.
the tooltip disappears, and now try moving the cursor in the label
again, you will never see tooltip again.

The small issue is killing me, I don't see any good way to around
this, since Tooltip is a Component, the APIs are just too clean to add
tricks.

Any pointers would be appreciated!
ClayB - 30 Aug 2007 18:23 GMT
If you just want to handle this case of the label click losing the
tooptip, then you can subscribe to the label's click event and reset
the tip there.

       private void label1_Click(object sender, EventArgs e)
       {
           toolTip1.Active = false;
           toolTip1.Active = true;
       }

================
Clay Burch
Syncfusion, Inc.
jonny - 31 Aug 2007 13:07 GMT
Hi Clay,
It works great, thanks! I was digged too deep to win32 staffs and
hasn't think of the Active Property, thank for the point.

-Jonny

> If you just want to handle this case of the label click losing the
> tooptip, then you can subscribe to the label's click event and reset
[quoted text clipped - 9 lines]
> Clay Burch
> Syncfusion, Inc.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.