How to add items in Combo Box in runtime in .net

In Combo Box control we can display more than one item. These items we can bind statically or we can add items in Combo Box control at run time.

In following examples we can see how to add items in Combo Box control on run time.

 Add single item at run time-


 This code will add item at Top of the combo box item list.

 Insert Item at specific location-

     ComboBox1.Items.Insert(2, "Abcd")

This code will insert item at 2nd position in combo box item list.

 Add multiple items at run time-

 For itemNo As Integer = 0 To 100

Above code will add all 100 item numbers in combo box

Author: Ankur

Have worked primarily in the domain of Calling, CRM and direct advertisers services. My technological forte is Microsoft Technologies especially Dot Net (Visual Studio 2003, 2005, 2008, 2010 and 2012) and Microsoft SQL Server 2000,2005 and 2008 R2. My Area of Expertise is in C#. Net, VB.Net, MS-SQL Server, ASP. Net, Silverlight, HTML, XML, Crystal Report, Active Reports, Infragistics, Component Art, ComponeOne, Lead Tools etc.