ToolTip with Click Event

G

Guest

Hello,

I use a ToolTip with the Show function e.g. toolTip1.Show("text", button1)
Is it possible to catch the Click Event when the user clicks on the ToolTip
window?
Or is it possible to add one or more buttons to the toolTip?

Thanks in Advance,
Robert Witter
 
L

Linda Liu [MSFT]

Hi Robert,

The ToolTip class doesn't provide such a 'Click' event at present.

The ToolTip window is a popup window. It's hard to get the handle of the
tooltip window, not to speak of to catch the Click event when the user
clicks on the ToolTip window.

As for adding one or more buttons to the ToolTip, the ToolTip class doesn't
exposed a method to do it, either.

If you really want to do them, I suggest that you implement a custom
ToolTip. I have searched the codeproject website and found a good sample of
a custom ToolTip, which is derived from the ToolStripDropDown class.

You can subscribe the Click event of the derived ToolStripDropDown class
and add one or more buttons in the CustomToolTip (which is a UserControl)
and then host the CustomToolTip in the derived ToolStripDropDown class.

For more information on the custom tooltip, you may refer to the following
link:

'Simple pop-up control'
http://www.codeproject.com/cs/miscctrl/simplepopup.asp

Note that since it is a 3rd party control, Microsoft won't guarantee its
reliability and stability.

Hope this helps.


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Hi Linda,

Thanks for your answer.
I'll try the ToolTip you suggested, it sounds good for me.

Sincerely,
Robert Witter

______________________
 

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