im new to programming, Ive got 2 listboxes 1 shows all the users the other all the groups. I need to select a user from listbox 1 and have their group membership show up in the other. And vice versa select a group from listbox 2 and have the members of the group show up in listbox 1.
heres the code i have so far
heres the code i have so far
VB.NET:
Dim oGroup,oUser
oUser = Getobject("WinNT://John.com/" & Listbox1.SelectedItem)
ForEach oGroup In oUsers.groups
Listbox2.Items.Add(oGroup.Name)
Next
End sub
Last edited by a moderator: