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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LostFocus Event Runs After New Objects Click Event

Status
Not open for further replies.

tekytippy

Programmer
Jan 5, 2004
19
NL
By simply putting some MESSAGEBOX statements in two events, the lost focus event of a text box and the click event of a dbi grid control I have determined that if a user who has currently got focus on the text box clicks the grid, this grids click event runs before the lost focus event of the text box.

I have to set autoyield to .F. due to using the dbi grid so in the click event the first thing I do is DOEVENTS but this has not changed this undesireable behaviour.

How can I make the lost focus event run before the click event code?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top