我在windows服务控制程序的主窗口里面定义了tooltip,可是却没有显示出来。但在其他的窗口中定义的tooltip却可以正常显示。不知道什么原因,请高手指点。

解决方案 »

  1.   

    tooltip的定义如下:
    public class frmMain : System.Windows.Forms.Form
    {
      ......
      private System.Windows.Forms.ToolTip toolTip1;
      ......
      private void InitializeComponent()
      {
         this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
         this.toolTip1.SetToolTip(this.cmdSet, "clcked here to save!");
         this.toolTip1.SetToolTip(this.cmdCancel, "cancel");
         this.toolTip1.SetToolTip(this.buttonRemove, "reset robot ");
         this.toolTip1.ShowAlways = true;
      }