|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Want a new Job?
Chapters
Services
Feature Zones
|
This article is a tip on how to add tooltips to controls on a windows form. Just follow the following steps and the form designer will take care of all the code addition into the source file.
When you add a private System.WinForms.ToolTip m_wndToolTip;
this.m_wndToolTip = new System.WinForms.ToolTip (this.components);
m_wndToolTip.SetToolTip (PictureButton, "Click Me!");
m_wndToolTip.SetToolTip (m_wndIntTextBox, "Enter Integer data type value.");
The m_wndToolTip.Active = false;
The attached demo project contains a simple form with two edit controls. One is for entering double type data and second is for entering integer type data. When you move the mouse over these controls, the tooltips for the corresponding controls will be displayed.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||