Invoke is within the control. That is, Control.Invoke();
It is not possible to invoke Invoke directly, since there is no such method in System.Windows.Forms . The Invoke method is a control.
Here is an example I made earlier:
public delegate void AddListViewItemCallBack(ListView control, ListViewItem item); public static void AddListViewItem(ListView control, ListViewItem item) { if (control.InvokeRequired) { AddListViewItemCallBack d = new AddListViewItemCallBack(AddListViewItem); control.Invoke(d, new object[] { control, item }); } else { control.Items.Add(item); } }
GenericTypeTea Jun 24 2018-10-06T00: 00Z
source share