我不想向用户发送 MessageBox,而是想在单击的按钮旁边发送一个带有一些文本的小型气球窗口,类似于任务栏通知气球工具提示。
当单击按钮时,如何为 windowsform 制作这种气球?
最佳答案
在表单上使用以下控件,
Button button1;
ToolTip toolTip1;
您可以使用此代码:
private void button1_Click(object sender, EventArgs e)
{
toolTip1.SetToolTip(sender as Control, "Some text in balloon!");
}
设置toolTip1.IsBalloon = true
关于c# - 单击按钮时出现气球工具提示?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4463837/