C# Add Items to comboBox – Programming, Pseudocode Example, C# Programming Example
General Windows Form

C# Add Items to comboBox

We can add items to a ComboBox at design-time from Properties Window by clicking on Items Collection and using code.


Add Items at Design Time

Method 1:

Method 2:

When you click on the Collections, the String Collection Editor window will pop up where you can type strings. Each line added to this collection will become a ComboBox item.



Add Items at Run-Time

We can add same items at run-time by using the following code snippet.



Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: