Hide() public method

public Hide ( IWin32Window win ) : void
win IWin32Window
return void
        private void listview_largeicon_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            System.Windows.Forms.ListViewItem lv = this.listview_largeicon.GetItemAt(e.X, e.Y);

            if (lv != null)
            {
                if (pointView.X != e.X || pointView.Y != e.Y)//防止闪烁

                {
                    string str_temp   = lv.SubItems[0].Text.Replace("#", "");
                    int    index_temp = mysqlID_to_listID(ellipse_list_tab4, Convert.ToInt16(str_temp));

                    toolTip_tab3.Show(ellipse_list_tab2[index_temp].ToolTip.ToString(), listview_largeicon, new System.Drawing.Point(e.X, e.Y), 10000);

                    pointView.X = e.X;

                    pointView.Y = e.Y;

                    toolTip_tab3.Active = true;
                }
            }
            else
            {
                toolTip_tab3.Hide(listview_largeicon);
            }
        }
Esempio n. 2
0
 private void HideToolTip()
 {
     if (FToolTip != null)
     {
         FToolTip.Hide(this);
         FToolTip.Dispose();
         FToolTip = null;
     }
 }
 private void dataGridView1_MouseCellEnter(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex != -1 && e.RowIndex != -1)
     {
         this.SuspendLayout();
         var   rectC        = dataGridView1.GetColumnDisplayRectangle(e.ColumnIndex, true);
         var   left         = rectC.Left + (int)(rectC.Width * .5f);
         var   rectR        = dataGridView1.GetRowDisplayRectangle(e.RowIndex, true);
         var   top          = (rectR.Top + (int)(rectR.Height * .5f));
         Point displayPoint = new Point(left + this.ClientRectangle.Left, top + this.ClientRectangle.Top + 40);
         var   column       = e.ColumnIndex;
         var   row          = e.RowIndex;
         for (int i = 0; i < 5; ++i)
         {
             ttText.Show(dataGridView1[column, row].Value.ToString(), this, displayPoint);
             ttText.Hide(this);
         }
         ttText.Show(dataGridView1[column, row].Value.ToString(), this, displayPoint);
         this.ResumeLayout();
     }
 }
Esempio n. 4
0
 private void linkLblFromUrl_MouseLeave(object sender, EventArgs e)
 {
     if (!controlToolTip && toolTipFromUrl != null && toolTipFromUrl.GetHandleCreated())
     {
         toolTipFromUrl.RemoveAll();
         IntSecurity.AllWindows.Assert();
         try
         {
             toolTipFromUrl.Hide(this);
         }
         finally
         {
             System.Security.CodeAccessPermission.RevertAssert();
         }
     }
 }
Esempio n. 5
0
 // Hide the tooltip if the user starts typing again before the five-second display limit on the tooltip expires.
 void maskedTextBox1_KeyDown(object sender, KeyEventArgs e)
 {
     // Create the ToolTip and associate with the Form container.
       ToolTip toolTip1 = new ToolTip();
       toolTip1.Hide(maskedTextBox1);
 }
Esempio n. 6
0
 private void BodyButton_MouseLeave(object sender, EventArgs e)
 {
     RequestAsapuTooltip.Hide(toolTipParent);
 }
Esempio n. 7
0
 private void OtworzPlik_MouseLeave(object sender, EventArgs e)
 {
     ToolTip1.Hide(this.OtworzPlik);
 }
Esempio n. 8
0
 void FSearchTextBoxMouseLeave(object sender, EventArgs e)
 {
     FTooltip.Hide(FSearchTextBox);
 }
 internal static void ToolTipOnDisabledControl_OnMouseLeave(
     object sender, EventArgs e, ToolTip toolTip, ref Control controlWithToolTipShown)
 {
     if (controlWithToolTipShown != null)
     {
         toolTip.Hide(controlWithToolTipShown);
     }
     controlWithToolTipShown = null;
 }
 // <summary>
 //     Helper method to display a tooltip over a disabled control
 // </summary>
 internal static void ToolTipOnDisabledControl_OnMouseMove(
     Object sender, MouseEventArgs e, Control disabledControl, ToolTip toolTip, ref Control controlWithToolTipShown)
 {
     var parent = sender as Control;
     if (parent == null)
     {
         return;
     }
     var ctrl = parent.GetChildAtPoint(e.Location);
     if (ctrl == disabledControl)
     {
         // if the user hover on control where tooltip is shown, just return.
         if (ctrl == controlWithToolTipShown)
         {
             return;
         }
         var tipString = toolTip.GetToolTip(ctrl);
         // calculate the screen coordinate of the mouse
         toolTip.Show(tipString, ctrl, 2, ctrl.Height + 2);
         controlWithToolTipShown = ctrl;
     }
     else if (controlWithToolTipShown != null)
     {
         toolTip.Hide(controlWithToolTipShown);
         controlWithToolTipShown = null;
     }
 }
Esempio n. 11
0
 private void pictureBoxIcon_MouseLeave(object sender, EventArgs e)
 {
     toolTip.Hide(this);
 }
Esempio n. 12
0
 void TopButtonLeave(object sender, EventArgs e)
 {
     FToolTip.Hide(this);
 }
 private void HideErrorBalloon(ToolTip toolTip, Label inputLabel) {
     toolTip.RemoveAll();
     toolTip.Hide(this);
     inputLabel.ForeColor = SystemColors.ControlText;
 }