the problem of ToolTips's displaying

F

fts2012

Hi all,
I set the ToolTips when the solution is running.
as follows:
ToolTip1.SetToolTip(Me.Label1, "nothing")
ToolTip1.AutomaticDelay = 10
ToolTip1.AutoPopDelay = 5000
ToolTip1.ShowAlways = True

then ,when I move mouse over Label1, "nothing" is showed, then repeat
the action above, it does well.
But when the time which mouse over Label1 is more than 5000, the
ToolTip is disappear, and whatever you do, the "nothing" will never be
showed again.

Can anyone tell me the reason.
Thanks :)
 
K

kimiraikkonen

Hi all,
I set the ToolTips when the solution is running.
as follows:
ToolTip1.SetToolTip(Me.Label1, "nothing")
ToolTip1.AutomaticDelay = 10
ToolTip1.AutoPopDelay = 5000
ToolTip1.ShowAlways = True

then ,when I move mouse over Label1, "nothing" is showed, then repeat
the action above, it does well.
But when the time which mouse over Label1 is more than 5000, the
ToolTip is disappear, and whatever you do, the "nothing" will never be
showed again.

Can anyone tell me the reason.
Thanks :)

Hi,
Could you put the code in label1's MouseHover event? Hence, your
tooltip will re-appear after delay time passes, when ever mouse
pointer hovers on the label as follows:

Private Sub Label1_mouseHover(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Label1.MouseHover
ToolTip1.AutomaticDelay = 10
ToolTip1.AutoPopDelay = 5000
ToolTip1.ShowAlways = True
ToolTip1.SetToolTip(Me.Label1, "nothing")
End Sub


Thanks,

Onur Güzel
 
F

fts2012

Hi,
Could you put the code in label1's MouseHoverevent? Hence, your
tooltip will re-appear after delay time passes, when ever mouse
pointer hovers on the label as follows:

Private Sub Label1_mouseHover(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Label1.MouseHover
ToolTip1.AutomaticDelay= 10
ToolTip1.AutoPopDelay = 5000
ToolTip1.ShowAlways = True
ToolTip1.SetToolTip(Me.Label1, "nothing")
End Sub

Thanks,

Onur G¨¹zel

Thank you for your reply!
Use the method you mentioned above, it does work£¡(thanks again :)
And to complete this function I have to add another sub to handle the
MouseLeave action.
In my opinion, the ToolTip control should be a dependently , fully
module which provide we with the popup usage.
But now I have to write another two sub to fulfil the function, this
confused me.
Why is the ToolTip so unstable ?
 
K

kimiraikkonen

Thank you for your reply!
Use the method you mentioned above, it does work£¡(thanks again :)
And to complete this function I have to add another sub to handle the
MouseLeave action.
In my opinion, the ToolTip control should be a dependently , fully
module which provide we with the popup usage.
But now I have to write another two sub to fulfil the function, this
confused me.
Why is the ToolTip so unstable ?

I really don't know, the solution i posted was for doing a *kind" of
solution, no matter if it does what you want.

See here for your question:
http://forums.msdn.microsoft.com/en-US/netfxbcl/thread/14abffde-681d-4896-8523-2311e8c3779c/

It's said that it's by design, however i agree that it's annoying and
undesired behaviour.

Thanks,

Onur G¨¹zel
 

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