Results 1 to 4 of 4

Thread: [RESOLVED] listbox

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    476

    Resolved [RESOLVED] listbox

    whats the code for when i select something from a list box

    i tried:
    VB Code:
    1. lstUsers.Selected = lblSelUser.Caption

    i cant fink of what it is
    If your question is answered then mark your thread RESOLVED and give credit to whoever answered it.

    If you fail, try and try again, its the only way to success.

  2. #2
    Hyperactive Member
    Join Date
    Oct 2006
    Posts
    419

    Re: listbox

    what are you wanting to do with the data from the list box? will help give a better answer
    If a post has been usefull then Rate it!

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    476

    Re: listbox

    when i select a user from the list box i want the user to show in a caption
    If your question is answered then mark your thread RESOLVED and give credit to whoever answered it.

    If you fail, try and try again, its the only way to success.

  4. #4
    Frenzied Member
    Join Date
    Jun 2006
    Posts
    1,098

    Re: listbox

    VB Code:
    1. Private Sub lstUsers_Click()
    2.   lblSelUser.Caption = lstUsers.List(lstUsers.ListIndex)
    3. End Sub

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