Hello,This thread is quite old but I'm writting becouse I've found out the same ¿bug?. I'm working on 10.1 .NET sdk.When you override the OnSelChange method it fires three times. I tried this, and again the message apears 3 times.string myvalue;
protected override void OnSelChange(int cookie)
{
myvalue = this.Value.ToString();
doSomethingMethod(myvalue);
}
void doSomethingMethod(string txt)
{
MessageBox.Show(txt)
}
Finally it worked to me including a if clause like this. I don't know why, but in this way the method fires just once.string myvalue;
protected override void OnSelChange(int cookie)
{
myvalue = this.Value.ToString();
if (myvalue != "") doSomethingMethod(myvalue);
}
void doSomethingMethod(string txt)
{
MessageBox.Show(txt)
}