ToolTip hassles

S

Steve

I want to show a tooltip over one of my WinForm controls at startup. The
control is part of a UserControl that I'm hosting in a CAP DeckWorkspace.
In other words, I have many user controls that I activate or show by
bringing them to the front.

I have a tooltip control setup to be a balloon tooltip. Inside the Load
event handler for the UserControl I have this code:

toolTip_ChangeSearchLocation.Show("Some text.",
linkLabel_ChangeSearchLocation);

This doesn't work. Nothing shows, no exceptions, etc. Now, if I add a
button to my user control and add the above code in the click handler it
works. It doesn't draw the arrow correctly until I click it twice, but I
hacked around that by calling the same code twice in the event handler.

What I'm after is to have my UserControl show a tooltip over a certain
control at startup.

Anyone do this? It's hard to know why I'm not seeing the tooltip when
called from Load, since there are no errors, I don't have much to go with.

Thanks for any help,
Steve Klett
 
G

Guest

Hi Steve,

I'm sorry I don't have an answer, but this sounds similar to a problem I'm
having with ToolTip (search for my post a couple days ago). Basically, my
tooltips are coming up behind the window form that hosts by (wrapped) user
controls.

To see if this is happening to you, make "Some text" a significantly large
string, and make sure your application window is not maximized. If the
tooltip is larger than the width of the window, you may see it extending
beyond its borders (but underneath).

I will try to monitor this post as well as my own for any answers, and will
update you if I come up with one. If you come up with one elsewhere, I'd
appreciate you replying to this post to share that answer.

Thanks,
pagates
 

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