public void EnableOk() { if (this.buttonOK.InvokeRequired) //see http://msdn.microsoft.com/en-us/library/ms171728(VS.90).aspx { EnableOKCallBack d = new EnableOKCallBack(EnableOk); this.Invoke(d); } else { buttonOK.Enabled = true; this.Update(); } }
public void EnableOk() { if (this.buttonOK.InvokeRequired) //see http://msdn.microsoft.com/en-us/library/ms171728(VS.90).aspx { EnableOKCallBack d = new EnableOKCallBack(EnableOk); this.Invoke(d); } else { buttonOK.Enabled = true; this.Update(); } }