ToolTip question

  • Thread starter Thread starter Boni
  • Start date Start date
B

Boni

Dear all,
I have a problem with displaying tooltip on picturebox.
In OnMouseMove I put
m_ToolTip.SetToolTip(sender, "AAAAAAAAAAAAAAAAAA")

But tooltip is not shown.

m_ToolTip.Active=true does not help.

I created a new small project, and there is no problem with a tooltip in it.

Are there some other settings? Can somebody give an idea, what could be a
problem?

Thanks,

Boni
 
Try this:
m_ToolTip.SetToolTip(Picturebox1,"AAAAAAAAAAAAAAAAA")
Or whatever you have actually named the Picturebox. Sender is the name of the control that the tooltip is for.
james
 
Hi James,
I did. Nothing changes.
james said:
Try this:
m_ToolTip.SetToolTip(Picturebox1,"AAAAAAAAAAAAAAAAA")
Or whatever you have actually named the Picturebox. Sender is the name of
the control that the tooltip is for.
james
 
Are you allowing the cursor to stay still over the control for the necessary
amount of time?
 
I think I found out what the reason is. It seems that tooltip don't work on
formless control (at least in my case).
 
Boni said:
I think I found out what the reason is. It seems that tooltip don't work on formless control (at least in my case).


Instead of putting it in the MouseMove event, try putting your tooltip in the MouseEnter event for the PictureBox. That way,
the tooltip should show as soon as the mouse pointer enters the picturebox area.
james
 

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

Back
Top