= ProgrammingLinks/ComboBoxTricks =

When changing the value via SelectedIndexChanged events, it is often very helpful to know what the old value was. You can set this value in the OnClick method as follows:

{{{#!java
   ((ComboBox)sender).Tag=(([TYPE])((ComboBox).sender).SelectedItem).[property]
}}}