More help with the ComboBox

laroberts

Freshman
Joined
Jun 29, 2005
Messages
34
Ok this code works great for importing cobobox options from a text file.....
Dim myStream As New IO.StreamReader("file path")
Dim fileLines As New ArrayList

While myStream.Peek <> -1
fileLines.Add(myStream.ReadLine())
End While

myStream.Close()
Me.ComboBox1.DataSource = fileLines


But....


I have a button on that form that says find job. When the user presses this button it needs to load a text file depending on what the option was they choose from the drop down list. Now I know how to do this if the list is hard coded. You just do if and elseif commands... but I do not know how to code it for something like this where the drop down list can change all the time. Any code examples?

Thanks
 
Back
Top