By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,376 Members | 1,566 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,376 IT Pros & Developers. It's quick & easy.

ToolTip question

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Try this:
m_ToolTip.SetToolTip(Picturebox1,"AAAAAAAAAAAAAAAA A")
Or whatever you have actually named the Picturebox. Sender is the name of the control that the tooltip is for.
james
"Boni" <oilia@nospam> wrote in message news:e2*************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #2

P: n/a
Hi James,
I did. Nothing changes.
"james" <jjames700ReMoVeMe at earthlink dot net> schrieb im Newsbeitrag
news:ud**************@TK2MSFTNGP12.phx.gbl...
Try this:
m_ToolTip.SetToolTip(Picturebox1,"AAAAAAAAAAAAAAAA A")
Or whatever you have actually named the Picturebox. Sender is the name of
the control that the tooltip is for.
james
"Boni" <oilia@nospam> wrote in message
news:e2*************@tk2msftngp13.phx.gbl...
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


Nov 21 '05 #3

P: n/a
Are you allowing the cursor to stay still over the control for the necessary
amount of time?

"Boni" <oilia@nospam> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl...
Hi James,
I did. Nothing changes.
"james" <jjames700ReMoVeMe at earthlink dot net> schrieb im Newsbeitrag
news:ud**************@TK2MSFTNGP12.phx.gbl...
Try this:
m_ToolTip.SetToolTip(Picturebox1,"AAAAAAAAAAAAAAAA A")
Or whatever you have actually named the Picturebox. Sender is the name
of the control that the tooltip is for.
james
"Boni" <oilia@nospam> wrote in message
news:e2*************@tk2msftngp13.phx.gbl...
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




Nov 21 '05 #4

P: n/a
I think I found out what the reason is. It seems that tooltip don't work on
formless control (at least in my case).
"Scott M" <sc*****@nospam.nospam> schrieb im Newsbeitrag
news:OY*************@TK2MSFTNGP12.phx.gbl...
Are you allowing the cursor to stay still over the control for the
necessary amount of time?

"Boni" <oilia@nospam> wrote in message
news:u9**************@TK2MSFTNGP12.phx.gbl...
Hi James,
I did. Nothing changes.
"james" <jjames700ReMoVeMe at earthlink dot net> schrieb im Newsbeitrag
news:ud**************@TK2MSFTNGP12.phx.gbl...
Try this:
m_ToolTip.SetToolTip(Picturebox1,"AAAAAAAAAAAAAAAA A")
Or whatever you have actually named the Picturebox. Sender is the name
of the control that the tooltip is for.
james
"Boni" <oilia@nospam> wrote in message
news:e2*************@tk2msftngp13.phx.gbl...
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


Nov 21 '05 #5

P: n/a

"Boni" <oilia@nospam> wrote in message news:u$**************@TK2MSFTNGP10.phx.gbl...
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

Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.