Prix
Prix

Reputation: 19528

Balloon ToolTip when clicking a button ?

Instead of sending a MessageBox to the user I would like to send a smaill balloon window next to the clicked button with some texts on it, similar to the taskbar notify balloon tooltip.

How could I make this sort of balloon for the windowsform when the button is clicked ?

Upvotes: 2

Views: 6572

Answers (2)

decyclone
decyclone

Reputation: 30830

With following controls on your form,

Button button1;
ToolTip toolTip1;

You can use this code:

private void button1_Click(object sender, EventArgs e)
{
    toolTip1.SetToolTip(sender as Control, "Some text in balloon!");
}

Set toolTip1.IsBalloon = true

Upvotes: 5

Related Questions