which comes first

gotfocus or lostfocus

Page 1 of 1

2 Replies - 1199 Views - Last Post: 21 September 2005 - 06:47 AM Rate Topic: -----

#1 harshnanda  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 38
  • Joined: 04-April 05

which comes first

Posted 20 September 2005 - 08:38 AM

hello,
when say a ctrl A losses its focus to ctrl B, does got focus of B run first of lostfocus of ctrl A.
thank u
Is This A Good Question/Topic? 0
  • +

Replies To: which comes first

#2 Jhin  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 8
  • View blog
  • Posts: 257
  • Joined: 06-July 05

Re: which comes first

Posted 20 September 2005 - 09:12 AM

MSDN Library GotFocus Event

Quote

If you move the focus to a control on a form, and that control doesn't have the focus on that form, the Exit and LostFocus events for the control that does have the focus on the form occur before the Enter and GotFocus events for the control you moved to.

Was This Post Helpful? 0
  • +
  • -

#3 harshnanda  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 38
  • Joined: 04-April 05

Re: which comes first

Posted 21 September 2005 - 06:47 AM

thank u.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1