"Lou" <lo********@comcast.netwrote in news:eSexhKTpHHA.1240
@TK2MSFTNGP04.phx.gbl:
Do you have an example?
Private Delegate Sub UpdateControlDelegate(ByVal Text as string)
Private Sub UpdateControl(Byval Text as String)
If MyControl.InvokeRequired Then
MyControl.BeginInvoke(New UpdateControlDelegate(AddressOf
UpdateControl), new object(){Text})
Else
... Do Update Here
End If
End Sub
P.S. you don't need to create the delegate if you're not passing in
parameters - in which case you can just use the built in MethodInvoker
delegate.