R
Robinson
Hi,
I want a user control I have to "dissapear" when it loses the focus. The
control is made up of some other controls however, a text box, a button and
a DateTimePicker. In order to effect this behaviour I'm handling the
"LostFocus" event on each of these controls and checking to see if any of
them have the focus; if so, cancelling the "lostfocus" of the control as a
whole.
The problem is that the DateTimePicker when activated produces a drop-down
which grabs the focus itself, but which does not affect the focus state of
it's parent control. I can't see how I can also check to see if it has the
focus ( a DateTimePicker.PickPanel property). Can anyone think of a
suitable workaround?
Robin
I want a user control I have to "dissapear" when it loses the focus. The
control is made up of some other controls however, a text box, a button and
a DateTimePicker. In order to effect this behaviour I'm handling the
"LostFocus" event on each of these controls and checking to see if any of
them have the focus; if so, cancelling the "lostfocus" of the control as a
whole.
The problem is that the DateTimePicker when activated produces a drop-down
which grabs the focus itself, but which does not affect the focus state of
it's parent control. I can't see how I can also check to see if it has the
focus ( a DateTimePicker.PickPanel property). Can anyone think of a
suitable workaround?
Robin