VbStudent302 Posted December 2, 2005 Posted December 2, 2005 If i have a combo box with the values 1,2,3 & 4 in it and i have a button, how would i get the button to when pressed turn the combobox's selected item to 2? Quote
Cags Posted December 2, 2005 Posted December 2, 2005 If you wish to select the item with the text "2" you can use ComboBox1.SelectedIndex = ComboBox1.Items.IndexOf("2") or if you wish to select the second item regardless of what it is ComboBox1.SelectedIndex = 1 Quote Anybody looking for a graduate programmer (Midlands, England)?
VbStudent302 Posted December 2, 2005 Author Posted December 2, 2005 Thank you, :D lol why didnt it work the first time i used those methods.... Quote
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.