System.Windows.Forms.Control.BeginInvoke C# (CSharp) Method

BeginInvoke() private method

private BeginInvoke ( Delegate method ) : IAsyncResult
method System.Delegate
return IAsyncResult
		public IAsyncResult BeginInvoke(Delegate method) {
			object [] prms = null;
			if (method is EventHandler)
				prms = new object [] { this, EventArgs.Empty };
			return BeginInvokeInternal(method, prms);
		}

Usage Example

Example #1
1
 /// <summary>
 /// 跨线程访问控件
 /// </summary>
 /// <param name="ctrl">Form对象</param>
 /// <param name="de">委托</param>
 public static void Invoke(Control ctrl, Delegate de)
 {
     if (ctrl.IsHandleCreated)
     {
         ctrl.BeginInvoke(de);
     }
 }
All Usage Examples Of System.Windows.Forms.Control::BeginInvoke
Control