How do I add a tooltip to my Button control

Platform: WinForms| Category: Tips

From within the designer:
1) From the ToolBox, drop a ToolTip control to your form.
2) Check the properties of this toolTip1 object to make sure Active is set to true.
3) Click on your button, and in its Property page, set the ToolTip on toolTip1 entry.

From code:

	private System.Windows.Forms.ToolTip toolTip1;
	......
	......
	this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
	this.toolTip1.Active = true;
	......
	......
	this.toolTip1.SetToolTip(this.button1, 'Press for information...');

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.