Which method can be used to set the values in combo box from within code?
shazzy99 0 Junior Poster in Training
Recommended Answers
Jump to Posthi
this simple example u can set data in combobox
for (int i = 0; i < 10; i++)
{
comboBox1.Items.Add(i);
}
comboBox1.SelectedIndex = 0;plz follow the advice of "Atenka" and "Ramy Mahrous"
bye
All 4 Replies
Antenka 274 Posting Whiz
Ramy Mahrous 401 Postaholic Featured Poster
BlackSun 4 Light Poster
Ramy Mahrous commented: Helps with code a lot :) +5
LizR 171 Posting Virtuoso
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.