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?
Printable View
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?
Hi.
You can do a select case on the selected text.
VB Code:
Select Case Listbox1.Text Case "Item1" 'Open form 1 Case "Item2" 'Open form 2 'Just keep on going until you have no more items. End Select
I Hope this helps you on your way. :wave: