N
Nina
I would like to call BringToFront() method using Control.Invoke method. How
can I add it to my code?
private void thread_Execute()
{
SetControlBringToFront(this); // SetControlBringToFront(this, BringToFront());
}
private delegate void SetControlBringToFtontDelegate(Control ctrl, Delegate
method);
void SetControlBringToFront(Control ctrl, Delegate method)
{
ctrl.BeginInvoke(new SetControlBringToFtontDelegate(SetControlBringToFront),
ctrl, method);
}
can I add it to my code?
private void thread_Execute()
{
SetControlBringToFront(this); // SetControlBringToFront(this, BringToFront());
}
private delegate void SetControlBringToFtontDelegate(Control ctrl, Delegate
method);
void SetControlBringToFront(Control ctrl, Delegate method)
{
ctrl.BeginInvoke(new SetControlBringToFtontDelegate(SetControlBringToFront),
ctrl, method);
}