Set Dialog box position

NigelShaw

Registered User.
Local time
Today, 22:59
Joined
Jan 11, 2008
Messages
1,575
Hi,

is it possible to set the position of a dialog box rather than let it appear wherever it appears? for example, a standard message box appears centre to the screen but if on your form you have a browse button, the browse dialog opens to the left of the screen. Im actually trying to position a font dialog box but nothing much comes up on searches at the minute :(

if anyone can point me in the right direction, that would be cool :P

cheers

Nidge
 
You might try DoCmd.MoveSize in your dialog form's Open event.
 
Hi Guys,

thanks for the replies. This is a windows dialog box not an Access one so i cannot place code into any form events.

cheers

Nidge
 
google windows api position dialog
 
Were you ever able to find a solution to this?
 
Share the knowledge mate :)

Hi,

Is it an Access form you are centering or a dialog? If its a dialog, there is a bit of extra coding involved. Let me know and i'll post what i can :)


N
 
Sorry for not getting back to you earlier, it's a dialog box (color chooser) from the MS Common Dialog
 

Users who are viewing this thread

Back
Top Bottom