// FRMdebugTrace trace = null; private void TextBox_GotFocus(object sender, EventArgs e) { OnFireGotFocus(e); uint n = NativeWIN32.GetTickCount(); if (Math.Abs(n - _lastTableClick) > 500) { System.Drawing.Point curPoint = this.PointToClient(System.Windows.Forms.Cursor.Position); Rectangle rc = this.GetCellBounds(this.CurrentCell); // if(clsAppGlobals.RunMode) // { // if(trace == null) // { // trace = new FRMdebugTrace(); // trace.Show(); // } // trace.addTrace(curPoint.ToString()+" "+rc.ToString()+" "+rc.Contains(curPoint).ToString()); // } if (rc.Contains(curPoint)) { _lastTableClick = n; OnFireClick(e); } } }
private void TextBox_Click(object sender, EventArgs e) { uint n = NativeWIN32.GetTickCount(); if (Math.Abs(n - _lastTableClick) > 500) { _lastTableClick = n; OnFireClick(e); } }