Results 1 to 3 of 3

Thread: listbox help selected

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2012
    Posts
    137

    Exclamation listbox help selected

    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

  2. #2
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,622

    Re: listbox help selected

    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?

  3. #3
    PowerPoster
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    14,206

    Re: listbox help selected

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width