点击事件中写
toolTip1气球提示控件
private void buttonS_Click(object sender, EventArgs e)
toolTip1气球提示控件
private void buttonS_Click(object sender, EventArgs e)
{
if (this.toolTip1.GetToolTip(this.buttonS) == "播放")//通过判断气球提示文字改变图片状态
{
Bitmap bmp = new Bitmap(Properties.Resources.b1);//调用资源文件图片
buttonS.Image = bmp;//picturebox控件附值
this.toolTip1.SetToolTip(this.buttonS, "暂停");
}
else
{
Bitmap bmp = new Bitmap(Properties.Resources.b2);
buttonS.Image = bmp;
this.toolTip1.SetToolTip(this.buttonS, "播放");
}
}
}