473,320 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ToolTip question

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
5 2219
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
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
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
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

"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: ltt19 | last post by:
HI everyone, So, I have many buttons, and all of them must show a tooltip with the same string, except one word, that I must read this owrd from a variable. Although, the "ToolTip on x" property...
3
by: GS | last post by:
I did not find it by Google on Microsoft sites I know 102 is just too long and tooltip would not display at all actually first two level of menuitems does not display tooltip properly....
2
by: =?Utf-8?B?Unlhbg==?= | last post by:
I have a winform with 20 text boxes; some text boxes have default values and some are blank. I have the following code to display ToolTip for each of the TextBox controls: ...
7
by: freddukes | last post by:
Okay... So this is my first project and I want to be able to make a tool tip appear with the basket contents whenever you hover over a link using the onmousehover='javascriptFunction()'. I have...
1
by: liming | last post by:
I have installed postgresql 8.3.1,import data from a dB to another one.I work in pgadmin 3 . When I choose a table ,select the characteristic?it shows the problem below? Error:relation...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.