Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 680991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:26:02+00:00 2026-05-14T01:26:02+00:00

I want to setup values for a combobox in vb.net through code. But I

  • 0

I want to setup values for a combobox in vb.net through code. But I don’t know what’s the code for setting it up. please help.
I want to do something like this:

if combobox1.selecteditem="1" then
    combobox2.values=("x", "y", "z")
end if
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:26:03+00:00Added an answer on May 14, 2026 at 1:26 am

    You use the ComboBox.Items collection’s Add or AddRange methods.

    Dim b As ComboBox
    
    ' Add them one at a time
    b.Items.Add("a")
    b.Items.Add("b")
    b.Items.Add("c")
    
    ' Or in one go
    b.Items.AddRange(new string() {"a", "b", "c"})
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 532k
  • Answers 532k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer As @Eimantas already said: it's not a good practice to… May 17, 2026 at 12:09 am
  • Editorial Team
    Editorial Team added an answer It's a good habit to get into, since iterators may… May 17, 2026 at 12:09 am
  • Editorial Team
    Editorial Team added an answer As per your request... Test for functionality. If you want… May 17, 2026 at 12:09 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a ComboBox, and i want to change its look when the ItemsSource
I'm binding the PageMediaSize collection of a PrintQueue to the ItemSource of a ComboBox
Setup: I have a combo-box, it's itemsource bound to an ObservableCollection<T> of a custom
I'm fairly new to LINQ in general but I've managed to figure things out
Often times applications will need some database code tables (aka reference tables or domain
Ive created a custom UserControl that contains a single combobox. The currently selected value
I want to be able to pull the name of the file and url
I want to make sure I am testing Models/Objects in isolation and not as
I've got a Matplotlib graph with two y axes, created like: ax1 = fig.add_subplot(111)
I have an XML file with the following structure: <Products> <Product name=MyProduct1> <Components> <Component

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.