Default Message box placement

Anne Troy
Anne Troy used Ask the Experts™
on
Plain old message box.

How do I make it appear bottom-right of screen instead of center?

Please  provide complete sample code for a message box. This is NOT a homework assignment, but I do ask questions for someone else.

Extra points for fast, correct answer! THANKS!!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
The easiest way is to create a generic message box form with text boxes and buttons; in design mode you can save it when it is positioned in the lower right-hand corner of the screen and set the AutoCenter property to No.

If you are intent on using the standard VBE MsgBox you will have to use Windows API functions.
Anne TroyEast Coast Manager

Author

Commented:
K, M. I'll check it out! Thanks.

Commented:
make your message box into a form that looks like your message box.  Select No for the AutoCenter property.  While your message box form is in OPEN View (not Design view), place the form where you want it on the screen.  Click File | Save.  Close then reopen your form.  Your form should reappear where it was before.
Anne TroyEast Coast Manager

Author

Commented:
Thanks, mgrattan. You confirmed what was already believed. That there really isn't a *better* way.

Points increased from 100 to 300 for fast response!

:)

Commented:
Glad to help!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial