question which control has focus.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,
When a textbox loses focus is there a quick way to find out which control has received
the focus whilst in the textbox lostfocus/leave event ?

Many Thanks.
 
Hello

I think one of the solution coulde be like this
for (int i=0; i<this.Controls.Count; i++)

{

if (this.Controls.Focused==true)

{

// Anything u want to do

}

}
 
Back
Top