Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which editbox has focus?

Status
Not open for further replies.

NormRumac

Programmer
Sep 4, 2003
41
0
0
CA
Hi.

This should be a simple question, but I can't figure it out.

I have a dialog box with 2 edit boxes. Intially, edit box1 has focus. However, the user can press TAB, or use the mouse to focus on the 2nd edit box.

My question is, how can i determine when the 2nd edit box gets focus, or when the 1st edit box regains focus?

 
Let them listen to the OnSetFocus message.

/Per
[sub]
"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top