Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

How to create a combo box in VB.net

Does anyone one have any good examples (code) on how to create a combo box in vb.net?
0
tesla764
Asked:
tesla764
1 Solution
 
SStoryCommented:
                Dim ComboBox1 as new ComboBox
                ComboBox1.Items.Add("Sunday")
		ComboBox1.Items.Add("Monday")
		ComboBox1.Items.Add("Tuesday")
		ComboBox1.Items.Add("wednesday")
		ComboBox1.Items.Add("Thursday")
		ComboBox1.Items.Add("Friday")
		ComboBox1.Items.Add("Saturday")

		ComboBox1.SelectedItem = ComboBox1.Items(3)

Open in new window


Is this what you are trying to do?

I'd just use the GUI.
0
 
tesla764Author Commented:
The combo box is grayed out in the toolbox. Would you know why that is that way?
0
 
Fernando SotoRetiredCommented:
What type of application are you working on WPF, Windows Form, ASP.Net or other?

Also this is happening when viewing the designer, right?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now