Reputation: 19528
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
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
Reputation: 9857
Take a look at this: http://www.codeproject.com/KB/miscctrl/ballontooltip.aspx
Or this: http://www.codeproject.com/KB/shell/balloontipsarticle.aspx
Upvotes: 1