Combo Box,Append a text ,C#

Posted by Raja_89 under C# on 6/12/2015 | Points: 10 | Views : 383 | Status : [Member] | Replies : 1
Hai
How can i append a value to a combo box in c#
Example
I am having a combo box with values 1 to 25 by Combo1.items.add(1),Combo1.items.add(2)..Combo1.items.add(25)
Then after
Combo1.items.add(25)
How can i add Combo1.items.add(C1) ..Combo1.items.add(c12)

Regards




Responses

Posted by: Jitendrasoft09 on: 6/14/2015 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi,

You can do using loop to append the combobox item using index id like below code given for an example-

my_combo.Items [i_index] = "some string"; 


Please refer below link-
http://stackoverflow.com/questions/7030542/how-do-i-change-the-text-of-a-combobox-item

Jitendra Kumar
If my post helps you, plz mark as an answer.

Raja_89, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response