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