You can bind the
SelectedItem
property in the combo box to a public property in your form. That means your form has to inherit/implement
INotifyPropertyChanged
.
Another way is to handle the
SelectionChanged
event for the combo box, and set a method variable like so:
MyType selected = (MyType)combobox.SelectedItem