i have list1 that has usernames so i want a code like this plz
when an item is selected in list then send my code to that item thats selected
Me.wsServer(index).SendData lstUsers.Text & "COMMAND_KICK"
please help
Printable View
i have list1 that has usernames so i want a code like this plz
when an item is selected in list then send my code to that item thats selected
Me.wsServer(index).SendData lstUsers.Text & "COMMAND_KICK"
please help
What do you mean "send my code to that item thats selected"?
what is me.wsServer? And what is "COMMAND_KICK"?
Are you trying to EMAIL?
You would have to determine which Socket [winsock control] that user is connected through and send the text to that control. If the items in the list are in the same order as they are connected to teh winsock array then you could use the select items index+1 to determine the correct control if not then there is no way to even guess based on what you have provided.