How to popup a ToolTip from code?


R

Rainer Queck

Hello NG,

How can I force a ToolTip to popup by code?
In a Textbox_TextChanged event I want to verify the entered text an in some
cases pop up a tooltip.
I tried myToolTip.Show("my Text", myTextbox), but it does not show.
If I use myToolTip.SetToolTip(...) It works, but before the tool tip shows,
I have to leave the textbox with my mouse and reenter it.

Thanks for hints and help.

Regards
Rainer
 
Ad

Advertisements

Ad

Advertisements

R

Rainer Queck

I ran this in 3.5 and took out some code that "might" have influenced
the outcome and it still worked.
I am using 3.5 as well.

I found my own workaroung, I am now moving the mouse a little by code wich
now pops up the tooltip :)
Cursor.Position = new Point(Cursor.Position.X + 10, Cursor.Position.Y);
Cursor.Position = new Point(Cursor.Position.X - 10, Cursor.Position.Y);

Rainer
 

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