Viper535 Posted November 28, 2003 Posted November 28, 2003 I am not the VB programmer, but recently, I have involved the the VB Project. I have the List of Items in Database. On my Form, I have 3 CombBox. When I filling these ComboBox with Values, How can I set the Default value for each ComboBox that Reference to the same Table. Each ComboBox have a specific Critera. Thank you for your help Quote
Moderators Robby Posted November 28, 2003 Moderators Posted November 28, 2003 You can use ... ComboBox1.SelectedText = "xxx" ' visible text 'or ComboBox1.SelectedValue = "xxx" 'item that bound it, usualy ID column Quote Visit...Bassic Software
*Experts* Volte Posted November 28, 2003 *Experts* Posted November 28, 2003 If you want to go by index:ComboBox1.SelectedIndex = 0 'first item 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.