read focus of controls

  • Thread starter Thread starter iccsi
  • Start date Start date
I

iccsi

I would like to set enabled to false, but sometimes the command button
is on focus that I got error that I can not disabled controls when it
is on focus.

I wanted to check if it is on focus before disabled it, but I onlt
find SetFocus method.

Any property to read focus of the controls to check does the controls
are in focus?

Any information is great appreciated,
 
Screen.ActiveControl.Name will tell you which control has focus.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top