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

Form focus

Status
Not open for further replies.

MartinF

Technical User
Joined
Sep 19, 2000
Messages
143
Location
FR
Hi,

I have a database that sends e-mails. When the E-mail message window closes, focus returns to the wrong form. There are two forms open at this point, a full screen non-modal/non-popup form and, open on top of if, a modal popup form.

It is the modal popup form that calls the E-mail and should recieve focus once the E-mail window closes, but what actually happens is that focus is returned to the form behind it, and when an attampt is made to set focus to the popup form, focus immeadiately switches back to the form nehind it.

Any ideas?

Thanks in advance
 
Hi,

Thanks for the response, i tried that but it didnt work either, however, i played around a little further and managed to cure the problem:- if quickly make the form invisible and then visible again it will keep its focus.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top