MsgBox placement

  • Thread starter Thread starter Dave
  • Start date Start date
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
 
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.
 
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.
 
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.
 
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...
 
Back
Top