R
ree
I have two combo boxes on a dialog window.
The aim is to check the the strings of the items. But if no items are
selected then this line crashes the program.
if (comboBox1.SelectedItem.ToString() == comboBox2.SelectedItem.ToString())
The aim is to check the the strings of the items. But if no items are
selected then this line crashes the program.
if (comboBox1.SelectedItem.ToString() == comboBox2.SelectedItem.ToString())