protected override void OnMouseEnter(EventArgs eventargs)
 {
     this.SetFlag(1, true);
     base.Invalidate();
     if ((!base.DesignMode && this.AutoEllipsis) && (this.ShowToolTip && (this.textToolTip != null)))
     {
         System.Windows.Forms.IntSecurity.AllWindows.Assert();
         try
         {
             this.textToolTip.Show(WindowsFormsUtils.TextWithoutMnemonics(this.Text), this);
         }
         finally
         {
             CodeAccessPermission.RevertAssert();
         }
     }
     base.OnMouseEnter(eventargs);
 }
Exemplo n.º 2
0
 protected override void OnMouseEnter(EventArgs e)
 {
     if (((!this.controlToolTip && !base.DesignMode) && (this.AutoEllipsis && this.showToolTip)) && (this.textToolTip != null))
     {
         System.Windows.Forms.IntSecurity.AllWindows.Assert();
         try
         {
             this.controlToolTip = true;
             this.textToolTip.Show(WindowsFormsUtils.TextWithoutMnemonics(this.Text), this);
         }
         finally
         {
             CodeAccessPermission.RevertAssert();
             this.controlToolTip = false;
         }
     }
     base.OnMouseEnter(e);
 }