string[] name = {"tarun","varun","john","rohan","rahul"};
I want to store this value in combo box at runtime
Can Anyone help me for the same

use the AddRange method like this:

namespace WindowsFormsApplication2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            string[] name = { "tarun", "varun", "john", "rohan", "rahul" };

            comboBox1.Items.AddRange(name);
        }
    }
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.