Hi,I'm new in WinForms Application help me change my ComboBox to default state of one of Collections I have
Thanks Sergey

Recommended Answers

All 2 Replies

Set the property SelectedIndex to the item's index you want it to be the default...
Say we want to show the 6th item
In form load handler add this piece of code

comboBox1.SelectedIndex = 5;
commented: Thanks a lot Ramy nice to meet you and thanks for your help +1

Please SerogaM, mark this thread as solved if you question correctly answered.

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.