Hi,
I am trying to implement a VB project in Windows Forms and after successfully receiving the client connect event to alert the user by changing the text on a label on the form and the color of an informative image from red to green.
I was using an xmpp library, that I am trying to replace with websync, and the library provided some very convenient object handlers that made invoking very easy. For example on the login xmpp event:
Private Sub myXMPP_OnLogin(sender As Object) Handles myXMPP.OnLogin
If InvokeRequired Then
BeginInvoke(CType(AddressOf myXMPP_OnLogin, agsXMPP.ObjectHandler), New Object() {sender})
Return
End If
rle_FormSatus.Text = "Connected to Data Server BOSH"
rib_XMPP.BackColor = Color.DarkGreen
End Sub
Can you please suggest a proper way for a VB project to implement the same functionality?
Kind Regards,
George