Possible Duplicate:
Programatically show tooltip in winforms application
When set a TooltipText on a control, and the tooltip text will be shown when user move mouse on the control.
Now I have a picturebox on a windows form, what I want is to display the tooltip text by clicking the control instead of hover it.
How to do it?
Thanks.
This code will do the trick:
private void PictureBox1_Click(object sender, EventArgs e)
{
int durationMilliseconds = 10000;
ToolTip1.Show(ToolTip1.GetToolTip(PictureBox1), PictureBox1, durationMilliseconds);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With