473,386 Members | 1,754 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,386 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 2223
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
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.