neuron Administrator
Posts : 38 Join date : 2009-08-06
| Subject: How to populate a combobox in VB.NET Fri Aug 07, 2009 12:02 am | |
| Simple code to populate the combobox with values - Code:
-
Me.BackgroundImage = System.Drawing.Image.FromFile("bg1.jpg") Me.ComboBox1.DropDownStyle = ComboBoxStyle.DropDownList Me.ComboBox1.Items.Insert(0, "background 1") Me.ComboBox1.Items.Insert(1, "background 2") Me.ComboBox1.Items.Insert(2, "background 3") Me.ComboBox1.SelectedItem = "background 1"
| |
|