RT
鼠标在按钮悬停时出现提示信息

解决方案 »

  1.   

    按钮属性  ToolTip 里写提示信息
      

  2.   

    1. 在VS2005中新建一个窗体工程,对按钮button1的MouseHover事件进行编译。private void button1_MouseHover(object sender, EventArgs e)
    {
        //MessageBox.Show("hello");
        ToolTip toolTip1 = new ToolTip();   // Set up the delays for the ToolTip.  
        toolTip1.BackColor = Color.Azure;
        toolTip1.AutoPopDelay = 2000;   
        toolTip1.InitialDelay = 1000;   
        toolTip1.ReshowDelay = 500;   // Force the ToolTip text to be displayed.      
        toolTip1.ShowAlways = true; // Set up the ToolTip text for the button            
        toolTip1.SetToolTip(this.button1, "hello NT5763!");   
     }2. 如果你能找到button的ToolTip属性,那可直接进行编辑,应该也能工作。
      

  3.   

    将一个 ToolTip组件toolTip1添加到窗体中。private void Form1_Load(object sender, EventArgs e)
    {
        toolTip1.SetToolTip(this.button1, "按下");
    }
      

  4.   

    放一个ToolTip控件,这个专门是悬浮提示的~~[align=center]***********************************************************
                       欢迎使用CSDN 小秘书
    ***********************************************************[/align]