How to associate ToolTip with some controls in WinForm

Source: Internet
Author: User

// This example assumes that the Form_Load event handling method

// Is connected to the Load event of the form.


Private
Void Form1_Load (object sender, System. EventArgs e)

{


// Create the ToolTip and associate with the Form container.

ToolTip toolTip1 = new ToolTip ();

 


// Set up the delays for the ToolTip.

ToolTip1.AutoPopDelay = 5000;

Tooltip1.initialdelay= 1000;

Tooltip1.reshowdelay= 500;


// Force the ToolTip text to be displayed whether or not the form is active.

ToolTip1.ShowAlways = true;

 


// Set up the ToolTip text for the Button and Checkbox.

ToolTip1.SetToolTip (this. button1, "My button1 ");

ToolTip1.SetToolTip (this. checkBox1, "My checkBox1 ");

}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.