Hi, how do I get the user's JID in a RosterTree? I can get the clicked user's node with NodeMouseDoubleClick but i don't know how to get his JID.
Private Sub RosterTree_NodeMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles RosterTree.NodeMouseDoubleClick
If e.Node.GetType().ToString = "muzzle.RosterTree+ItemNode" Then
'Code
End If
End Sub
Thank you.
UPDATE:
Solved with a type cast (Node to ItemNode):
Private Sub RosterTree_NodeMouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeNodeMouseClickEventArgs) Handles RosterTree.NodeMouseDoubleClick
If e.Node.GetType().ToString = "muzzle.RosterTree+ItemNode" Then
Dim rosterNode As RosterTree.ItemNode = CType(e.Node, RosterTree.ItemNode)
FormMessage.JID = rosterNode.JID
FormMessage.Show()
End If
End Sub
Thank you again.