MsgBox placement

D

Dave

Is it possible to specify where the MsgBox is displayed - the default seems
to be in the middle of the screen and I would like to have it further down

Thankx
 
P

PC Datasheet

Don't know if this is of interest to you but look at the SysCmd function; it
allows you to display messages in the task bar.
 
D

Douglas J. Steele

You could create your own form to display instead of the built-in message
box. You'd be able to position it exactly where you want then.
 
F

fredg

Is it possible to specify where the MsgBox is displayed - the default seems
to be in the middle of the screen and I would like to have it further down

Thankx

No. You have no control over where the built-in message box appears.
You can create your own unbound form and use it to display your
message.
Look up the MoveSize method for particulars on positioning the form.
DoCmd.MoveSize 3*1440, 4*1440
will position the form 3 inches from the left screen edge, and 4
inches down from the top. All measurements are in Twips.
 
D

Daniel Carollo

Hello Fred (and Dave)!

Access doesn't have any control over the msgbox window, but Windows has. I
have successfully used Windows APIs to change quite a few things in the
message boxes (button captions, prompt and title) and I'd be surprised if
the window position couldn't be changed by a call to a Window API. I based
my code on examples found on the MSDN website, at http://msdn.microsoft.com

Hope it gives you some ideas...
 

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