I am attempting to trigger some code to execute when a EpiCombo value changes…
this.ProjectID.EpiComboChanged += new Ice.Lib.Framework.EpiComboChanged(this.ProjectID_EpiComboChanged);
I was under the impression that the above code would call “this.ProjectID_EpiComboChanged” when the EpiCombo ProjectID changed… But the code is always executing, without the user changing the EpiCombo value - for example, when the UI loads…
For example, if I reduce the function to:
private void ProjectID_EpiComboChanged(object sender, System.EventArgs args)
{
MessageBox.Show("Hi I just opened this UI");
}
I get a MessageBox when I open the SO Entry form… What?!
How do I craft this so that it only triggers when appropriate - ie when the user selects a new EpiCombo value?