View Single Post
  #2 (permalink)  
Old August 10th, 2009, 05:47 AM
Lupus81 Lupus81 is offline
Registered User
Points: 62, Level: 1
Points: 62, Level: 1 Points: 62, Level: 1 Points: 62, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2009
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I suppose you used listbox for displaying those teams. Why don't you use combobox? It is easier to handle data from combobox (or textbox). Than you can use only one if - else if statement.
Use property of textbox or combo to start on each text change.

something like this:

if textbox1.text = "some_name" then
Dim myform As New Form2
myform.Show()
elseif textbox1.Text = "some_name_2" then
Dim myform1 As New Form3
myform1.Show()
...
end if
Reply With Quote