其他控件都有toolTipText属性来设置提示文本,但是PictureBox没有。有哪位大虾知道如何处理吗?

解决方案 »

  1.   

    private void Form1_Load(object sender, System.EventArgs e)
    {
       // Create the ToolTip and associate with the Form container.
       ToolTip toolTip1 = new ToolTip();   // Set up the delays for the ToolTip.
       toolTip1.AutoPopDelay = 5000;
       toolTip1.InitialDelay = 1000;
       toolTip1.ReshowDelay = 500;
       // Force the ToolTip text to be displayed whether or not the form is active.
       toolTip1.ShowAlways = true;
          
       // Set up the ToolTip text for the Button and Checkbox.
       toolTip1.SetToolTip(this.button1, "My button1");
       toolTip1.SetToolTip(this.checkBox1, "My checkBox1");
    }
      

  2.   

    你可以自己做一个,或者找一个popup
    ref:
    http://www.codeproject.com/useritems/Floating_Popup_Control.asp
    http://www.codeproject.com/cs/miscctrl/PI.asp
      

  3.   

    真要没有的话处理一个OnMouseMove事件吧。然后得到鼠标的位置把这个PopUp窗体现实出来。