G
Gianco
Hello
I would know if is possible to obtain the event handler of an object,
store it in a variable, disable it and then, after some operations
enable it again
more or less something like this (the code is not C# but something
similar):
public void MakeSomeStuffsOnComboBox(ComboBox cmbID)
{
EventVariable EV;
EV = cmbID.SelectedIndexChanged;
cmbID.SelectedIndexChanged = null;
//
// some stuffs
//
cmbID.SelectedIndexChanged = EV;
}
I hope the example is enough clear!
Thanks in advance
Gianco
I would know if is possible to obtain the event handler of an object,
store it in a variable, disable it and then, after some operations
enable it again
more or less something like this (the code is not C# but something
similar):
public void MakeSomeStuffsOnComboBox(ComboBox cmbID)
{
EventVariable EV;
EV = cmbID.SelectedIndexChanged;
cmbID.SelectedIndexChanged = null;
//
// some stuffs
//
cmbID.SelectedIndexChanged = EV;
}
I hope the example is enough clear!
Thanks in advance
Gianco