ToolTip problem

A

Alexander Bolotnov

Good day to everyone,

I am trying to make a ToolTip for a couple of TextBoxes. What I do is:

create a new ToolTip and make it a Balloon:

ToolTip myToolTip = new ToolTip();
myToolTip.IsBalloon = true;

then I add the title and show it:

myToolTip.ToolTipTitle = "Hi there";
myToolTip.Show("welcome", TextBox1);

Well, the problem is that the balloon tile will point to a weird location.
Can I somehow make it point directly to the TextBox?

Thanks for all answers,
Alexander.
 
D

David Gouge

Alexander said:
Good day to everyone,

I am trying to make a ToolTip for a couple of TextBoxes. What I do is:

create a new ToolTip and make it a Balloon:

ToolTip myToolTip = new ToolTip();
myToolTip.IsBalloon = true;

then I add the title and show it:

myToolTip.ToolTipTitle = "Hi there";
myToolTip.Show("welcome", TextBox1);

Well, the problem is that the balloon tile will point to a weird location.
Can I somehow make it point directly to the TextBox?

Thanks for all answers,
Alexander.

Hi Alexander,

Instead of the Show() method, use the SetToolTip() method instead.

myToolTip.SetToolTip(TextBox1, "welcome");

Hope that helps.

Dave
 

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