In the project properties, I created such a setting
NumberOfUsers int User 10
Columns are the name, type, scope, and value.
Then there is a ComboBox where the user can set "NumberOfUsers". There is a SelectedIndexChanged event in this combo where I save changes when the user changes the combo value. Here is the code:
Settings.Default.NumberOfUsers = combo1.SelectedIndex;
Settings.Default.Save();
A form with this combo is called from the parent as frm.ShowDialog();, and in the constructor of the child form I try to set the combined selected index based on the settings record
combo1.SelectedIndex = Settings.Default.NumberOfUsers;
However, this does NOT work, that is, the combo does not pull the value from the parameter, but by default it is 0 as the selected index.
Does anyone know where I am going wrong?