How can I display a tooltip over a button using Windows Forms?
相关问题
- Generic Generics in Managed C++
- How to Debug/Register a Permanent WMI Event Which
- 'System.Threading.ThreadAbortException' in
- Bulk update SQL Server C#
- Should I use static function in c# where many call
Using the form designer:
You can set also the tool tip programatically using the following call:
The ToolTip is actually a WinForms control that handles displaying tool tips for multiple elements on a single form.
Say your button is called MyButton.
The tooltip will automatically appear when the cursor hovers over the button, but if you need to display it programatically, call
in your code to show the tooltip, and MyToolTip.Hide(MyButton) to make it disappear again.