0

Hi again. I need to make tooltip work on mouse click, so when I click on the button for an example, a popup info should appear.

2
Contributors
2
Replies
3
Views
8 Years
Discussion Span
Last Post by travis67
0

hi travis,

first drag the tooltip onto your form, then put the line below in your button click event. you can set some options in the tooltip.Show() method

private void button1_Click_1(object sender, EventArgs e)
        {
            toolTip1.Show("Tip Text Here", button1);    //shows the tip on the button
            toolTip1.Show("Tip Text Here", button1, 0, -50, 2500);    //shows 50 pixels above the button for 2.5 seconds
        }
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.