What Control have the Focus()

  • Thread starter Thread starter Roberto Alvarado
  • Start date Start date
R

Roberto Alvarado

Hi for all

I want know how check in the Form1.Controls what control have a Focus?

Any Suggest

Thanks in Advance

RA
 
You can loop through Form.Controls collection and check
for the Focused value:

http://www.google.com/groups?
q=focused+author:Yakhnin&hl=en&lr=&ie=UTF-8&oe=UTF-
8&selm=09b101c39ca0%24a96bcaa0%24a401280a%40phx.gbl&rnum=1

-Alex
 
Roberto,

You need to loop though the items of the form's Controls collection until
you find one where Focused == true
 
Back
Top