C#中怎样在Button控件上添加提示语,让鼠标经过按钮时显示提示信息!

来源:互联网 发布:盐城做淘宝网友 编辑:程序博客网 时间:2024/06/05 06:29
在按钮的MouseEnter事件中写如下代码:ToolTip p = new ToolTip(); p.ShowAlways = true; p.SetToolTip(this.button1, "要显示的文字");

2 0