Results 1 to 2 of 2

Thread: how to show selected item from a textbox RESOLVED

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    91

    how to show selected item from a textbox RESOLVED

    ok, i have a listbox - 7 different things. i want the user to click one thing and click a button and it would open a new form depending on the item selected. how would i do that?
    Last edited by Synth3t1c; Feb 7th, 2004 at 12:52 AM.

  2. #2
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    Hi.

    You can do a select case on the selected text.

    VB Code:
    1. Select Case Listbox1.Text
    2.     Case "Item1"
    3.         'Open form 1
    4.  
    5.     Case "Item2"
    6.         'Open form 2
    7.  
    8.     'Just keep on going until you have no more items.
    9.  
    10. End Select

    I Hope this helps you on your way.
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

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