Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Adding ToolTips to Windows Controls
WhatsApp
C# Curator
15y
10.3
k
0
0
25
Blog
This has been excerpted from book "The Complete Visual C# Programmer's Guide from the Authors of C# Corner".
Adding a ToolTip to a control is a simple matter of implementing the functionality provided by the ToolTip class. There are two steps to add a ToolTip to a control: first, create an instance of the ToolTip control; second, attach a control to the ToolTip object by calling the ToolTip.SetToolTip method. To activate the ToolTip, set the Active property to true. The following code adds a ToolTip to a button control:
ToolTip
toolTip1 =
new
System.Windows.Forms.
ToolTip
();
toolTip1.SetToolTip (button1,
"This is tooltip test"
);
toolTip1.Active =
true
;
Conclusion
Hope this article would have helped you in understanding Adding ToolTips to Windows Controls. See other articles on the website on .NET and C#.
The Complete Visual C# Programmer's Guide covers most of the major components that make up C# and the .net environment. The book is geared toward the intermediate programmer, but contains enough material to satisfy the advanced developer.
Up Next
Calling Another user control from one
Ebook Download
View all
Frontend Developer Interview Questions and Answers
Read by 945 people
Download Now!
Learn
View all
Membership not found