Hi all
I faced some odd problem in my project.
In my application I initialize combobox with my classes. Works as expected.
foreach (MyClass c in Classes)
{
myComboBox.Items.Add(c);
}
I have event in my app which handles those classes and I want combobox select automatically that class as selecteditem. When I debug my app it looks fine, right class goes into combobox, but selecteditem remains null and therefore ui shows empty combobox.
here is snippet of my event..
Event(object sender, EventArgs e)
{
.
.
myComboBox.SelectedItem = e.MyClass;
.
.
}
its odd that combobox cannot handle this because it has that class already initialized in it.
Hope you got idea :)
Cheers!