MsgBox "Coordinates"

B

Bob Barnes

W/o making a custom Form to use as a "MsgBox"...

Can the standard MsgBox use coordinates to place x or y
number of pixels from right, left, top or bottom?

TIA - Bob
 
D

Douglas J. Steele

If you know the caption of the message box, you could probably use
FindWindow to get its handle, and then use MoveWindow to position it, but
it's just so much simpler to use your own form.
 
F

fredg

W/o making a custom Form to use as a "MsgBox"...

Can the standard MsgBox use coordinates to place x or y
number of pixels from right, left, top or bottom?

TIA - Bob

No, you have no control over where the standard message box displays
on the screen, but you can control where your own custom form
displays. By the way, the unit of measurement would be Twips (1440 per
inch) that you would use to position the custom form, not pixels.
 
B

Bob Barnes

Thank you Doug.

Douglas J. Steele said:
If you know the caption of the message box, you could probably use
FindWindow to get its handle, and then use MoveWindow to position it, but
it's just so much simpler to use your own form.
 
B

Bob Barnes

Thank you fredg.

fredg said:
No, you have no control over where the standard message box displays
on the screen, but you can control where your own custom form
displays. By the way, the unit of measurement would be Twips (1440 per
inch) that you would use to position the custom form, not pixels.
 

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