private void ClearTxtSearchKey() { if (this.InvokeRequired) { DelegateClearTxtSearchKey inv = new DelegateClearTxtSearchKey(this.ClearTxtSearchKey); this.Invoke(inv, new object[] { }); } else { Cursor.Current = Cursors.WaitCursor; this.TxtSearchKey.Text = string.Empty; Cursor.Current = Cursors.Default; } }