Hi,
We have a usercontrol with a number of controls on it. One being a radio
button and one being a button.
When we set button.enabled = false the click event of the radio button is
being raised.
The click event for all buttons & radio buttons is handled by a single
routine.
Private Sub Control_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
Me.IsDirty = True
End Sub
Here's the non-user code that is being executed:
system.windows.forms.dll!System.Windows.Forms.Cont rol.OnClick(System.EventAr
gs e = {System.EventArgs}) + 0x5e bytes
system.windows.forms.dll!System.Windows.Forms.Radi oButton.OnClick(System.Eve
ntArgs e = {System.EventArgs}) + 0x25 bytes
system.windows.forms.dll!System.Windows.Forms.Radi oButton.OnEnter(System.Eve
ntArgs e = {System.EventArgs}) + 0x36 bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.NotifyEnter() + 0x15
bytes
system.windows.forms.dll!System.Windows.Forms.Cont ainerControl.UpdateFocused
Control() + 0x1d9 bytes
system.windows.forms.dll!System.Windows.Forms.Cont ainerControl.AssignActiveC
ontrolInternal(System.Windows.Forms.Control value = {Text="Yes"
Checked=true}) + 0x26 bytes
system.windows.forms.dll!System.Windows.Forms.Cont ainerControl.ActivateContr
olInternal(System.Windows.Forms.Control control = {Text="Yes" Checked=true},
bool originator = false) + 0xf0 bytes
system.windows.forms.dll!System.Windows.Forms.Cont ainerControl.SetActiveCont
rolInternal(System.Windows.Forms.Control value = {Text="Yes" Checked=true})
+ 0xf2 bytes
system.windows.forms.dll!System.Windows.Forms.Cont ainerControl.SetActiveCont
rol(System.Windows.Forms.Control ctl = {Text="Yes" Checked=true}) + 0x30
bytes
system.windows.forms.dll!System.Windows.Forms.Cont ainerControl.set_ActiveCon
trol(System.Windows.Forms.Control value = {Text="Yes" Checked=true}) + 0x10
bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.Select(bool directed
= true, bool forward = true) + 0x30 bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.SelectNextControl(Syst
em.Windows.Forms.Control ctl = {Text="Yes" Checked=true}, bool forward =
true, bool tabStopOnly = true, bool nested = true, bool wrap = true) + 0xb7
bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.SelectNextIfFocused()
+ 0xaa bytes
system.windows.forms.dll!System.Windows.Forms.Cont rol.set_Enabled(bool
value = false) + 0x4b bytes
This really is strange behaviour. Has anyone else encountered anything like
this?
TIA