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.

Recommended Answers

All 2 Replies

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
        }

Thanks. It works.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.