M
Mikhail Fedosov
I have a panel and some of my controls on it (each control is derived from
Control, not from UserControl). I need to delete the selected control by
pressing the Del key. How it can be done? Panel does not process any
keyboard events. Also I don't want to delete any controls when focus is on
the other controls of the form.
So the scenario is something like this:
1. User clicks on some of my controls (panel receives focus)
2. User press Del key (control removes from panel)
3. User press Tab key (the focus is received by another control of the form,
but not a control of the panel)
4. User press Del key (nothing happens)
So the main question is how can I monitor focus state of the panel and
process the keygboard input?
Thank you very much.
Control, not from UserControl). I need to delete the selected control by
pressing the Del key. How it can be done? Panel does not process any
keyboard events. Also I don't want to delete any controls when focus is on
the other controls of the form.
So the scenario is something like this:
1. User clicks on some of my controls (panel receives focus)
2. User press Del key (control removes from panel)
3. User press Tab key (the focus is received by another control of the form,
but not a control of the panel)
4. User press Del key (nothing happens)
So the main question is how can I monitor focus state of the panel and
process the keygboard input?
Thank you very much.