Simple use of ToolTip in VB not working

J

JB

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
 
J

JB

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.

JB
 
J

JB

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.

JB
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top