.net - Can disabling a control cause a radio buttons value to change? -
i have for each loop going through controls in panel disabling them. when loop reaches 1 grid control , disables checkedchanged event fires next control in loop radio button.
the call stack follows:
system.windows.forms.dll!system.windows.forms.radiobutton.oncheckedchanged(system.eventargs e = {system.eventargs}) + 0x15 bytes system.windows.forms.dll!system.windows.forms.radiobutton.wnproc(microsoft.agl.forms.wm wm = wm_radiobutton_notifyvaluechanged, int wparam = 0, int lparam = 0) + 0x17 bytes system.windows.forms.dll!system.windows.forms.control._internalwnproc(microsoft.agl.forms.wm wm = wm_radiobutton_notifyvaluechanged, int wparam = 0, int lparam = 0) + 0x9 bytes system.windows.forms.dll!microsoft.agl.forms.wl.setenabled(system.intptr hwnthis = 1179753, microsoft.agl.common.bool fenabled = ffalse) system.windows.forms.dll!system.windows.forms.control._syncenabled() + 0x21 bytes system.windows.forms.dll!system.windows.forms.control.enabled.set(bool value = false) + 0x61 bytes
i don't understand how control.enabled = false can cause oncheckedchanged event.
has run similar situation , can maybe shed light on this?
the problem , solution explained in more detail here: dev center forums. explains why setting me.focus helps fixing problem.
Comments
Post a Comment