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 General / September 2004

Tip: Looking for answers? Try searching our database.

Simple use of ToolTip in VB not working

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JB - 03 Sep 2004 01:31 GMT
OK, my understanding of the simple use of the tooltip is to do the
following:

Drag the ToolTip from the toolbox on to your form.  Once this is done
all the controls have a new property added to them called "ToolTip on
ToolTip1" (default name).

For each control you can go and enter the specific text for that
particular control.  Then when the mouse is hovered over your controls
any ToolTips you've defined for the controls should be displayed.

I COULD NOT GET THIS TO WORK until I did the additional step:

On my first control I added an event handler for mouse over as
follows:

Private Sub lblAddOne_MouseHover(ByVal sender As Object, ByVal e As _
System.EventArgs) Handles lblAddOne.MouseHover

ToolTip1.SetToolTip(sender, "Move Selected Items From List 1 to List
2")

End Sub

Once I added this code the ToolTip on the first control worked fine.
I then just configured the properties of the second control's ToolTip
and IT worked fine without any extra code!

What am I missing here?

TIA.

JB
Sijin Joseph - 03 Sep 2004 07:32 GMT
It works on my system without adding any additional code. I am using
VS.Net 2003.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> OK, my understanding of the simple use of the tooltip is to do the
> following:
[quoted text clipped - 29 lines]
>
> JB
JB - 03 Sep 2004 16:49 GMT
Just a quick follow-up.  What I described below where I had coded the
first conrol and the other tooltips then worked - it was pretty
flakey...sometimes it would work...most times it wouldn't so I had to
code all.

I'm running 1.1 SP1 FW with VS.net 2003...I'm going to be
upgrading/re-installing soon so maybe it will start working as it
should.

> OK, my understanding of the simple use of the tooltip is to do the
> following:
[quoted text clipped - 29 lines]
>
> JB
JB - 07 Sep 2004 19:48 GMT
Last follow-up:  I found that rebooting my machine fixed this and
other strange behavior I've been seeing.  Don't know if others are
running into this or not.  My developement system is very weak (P-II
300 MHZ with about 512MB RAM)...but for now it is going to have to do.

> Just a quick follow-up.  What I described below where I had coded the
> first conrol and the other tooltips then worked - it was pretty
[quoted text clipped - 38 lines]
> >
> > JB
henrik - 11 Sep 2004 17:27 GMT
After installaing the latest SP i cant get the tooltip to work either. We had
it running in several applications for years !! - I get an internal .NET JIT
error when tooltip funtionality is added on application startup...

/Henrik

> Last follow-up:  I found that rebooting my machine fixed this and
> other strange behavior I've been seeing.  Don't know if others are
[quoted text clipped - 43 lines]
> > >
> > > JB

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.