When my program loads I read a value from the registry and set a read only combo box to that value however when loaded the combobox shows the item before it in the collection. I'm using the code below to set the text.
RegistryKey OurKey = Registry.CurrentUser;
OurKey = OurKey.OpenSubKey("Software\\test",true);
type = OurKey.GetValue("Type").ToString();
cboType.Text = type;
How should I set the combobox to the value I've read from the registry?
Thanks