"Lou" <lou.garvin@com cast.netwrote in news:eSexhKTpHH A.1240
@TK2MSFTNGP04.p hx.gbl:
Do you have an example?
>
Private Delegate Sub UpdateControlDe legate(ByVal Text as string)
Private Sub UpdateControl(B yval Text as String)
If MyControl.Invok eRequired Then
MyControl.Begin Invoke(New UpdateControlDe legate(AddressO f
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.
"Spam Catcher" <spamhoneypot@r ogers.comwrote in message
news:Xns99438EA F52AD7usenethon eypotrogers@127 .0.0.1...
"Lou" <lou.garvin@com cast.netwrote in news:eSexhKTpHH A.1240
@TK2MSFTNGP04.p hx.gbl:
>
>Do you have an example?
>>
>
>
Private Delegate Sub UpdateControlDe legate(ByVal Text as string)
>
Private Sub UpdateControl(B yval Text as String)
If MyControl.Invok eRequired Then
MyControl.Begin Invoke(New UpdateControlDe legate(AddressO f
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.
Comment