简体   繁体   中英

Update Text in Combobox on Visual Studio C#

I have a problem on update text in my Combo Box. I have the data on my combo box but if the data is not available, I want to type it by my self. How can I do that?

from Designer :

you need to goto Items Property of the ComboBox to Add the Items.

from Coding :

ComboBox1.Items.Add("Item1");
ComboBox1.Items.Add("Item2");
ComboBox1.Items.Add("Item3");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM