In C#, I have some comboboxes functioning as dropdown lists. The first value in the collection is the one I want to show as default to the user. Therefore, I added a line to the designer file, so that upon load, first value, aka index 0, is shown.
combobox1.SelectedIndex = 0;
It works! I do the same for every other combobox in my app, however, this keeps disappearing from the designer file. How can I fix this?
Thanks in advance.