N
nano2k
Each form has its ActiveControl property, but no ActiveControlChanged
event to signal that the active control has changed (like
ParentChanged event).
I tried to trick the form by declaring this property in my form:
public new Control ActiveControl {
get{ return base.ActiveControl; }
set{ base.ActiveControl = value; }
}
but the execution won't at the breakpoint defined on "set" method of
the property.
This means that the code is never executed.
Maybe some workarounds exist, like handling the Enter event on ALL
controls of my form, but it's not a solution for me.
Any idea?
Thanks.
event to signal that the active control has changed (like
ParentChanged event).
I tried to trick the form by declaring this property in my form:
public new Control ActiveControl {
get{ return base.ActiveControl; }
set{ base.ActiveControl = value; }
}
but the execution won't at the breakpoint defined on "set" method of
the property.
This means that the code is never executed.
Maybe some workarounds exist, like handling the Enter event on ALL
controls of my form, but it's not a solution for me.
Any idea?
Thanks.