Pointer on focused control

  • Thread starter Thread starter Boni
  • Start date Start date
B

Boni

Dear all,
if I have a Form and some controls on it, how can I get a pointer to the
focused control. I what to remember focused control, do some operations and
then restore focus
 
Boni said:
if I have a Form and some controls on it, how can I get a pointer to the
focused control. I what to remember focused control, do some operations
and then restore focus

The form's 'ActiveControl' property returns the currently focused control.
You can set the focus to a control by calling its 'Focus' method.
 
Thank you.
Can I somehow get from the control, the form, on which it is situated? The
control is incapsulated and I have no pointer there.I would have to pass one
more parameter if it is not possible to get parent form from the control.
 
Back
Top