laroberts Posted July 1, 2005 Posted July 1, 2005 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 Quote
Machaira Posted July 1, 2005 Posted July 1, 2005 Are you looking for the SelectedItem property of the ComboBox? Quote Here's what I'm up to.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.