Bring Form to Front of All Windows

E

Eric G

I have used "fSetAccessWindow SW_HIDE" to hide the main Access window after I
open and make visible a form ("Welcome"). Works great, with one exception -
when I put up a messagebox from the "Welcome" form and the user clicks Okay
(or whatever), the "Welcome" form suddenly disappears. I discovered that it
did not actually disappear, it was just placed behind some of the other
windows already open on my screen. I had to minimize those windows to find
it because the main app no longer shows on the task bar!

Is there a (easy) way to keep the userform at the top of the Windows z-order
after the messagebox is dismissed?

Thanks,

Eric
 
K

Ken Snell [MVP]

Set the focus to a control on the Welcome form. Do this in a code step right
after the MsgBox code step.
 
K

Ken Snell [MVP]

Set the focus to a control on the Welcome form. Do this in a code step right
after the MsgBox code step.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top