Dialog form position on screen

ezfriend

Registered User.
Local time
Yesterday, 20:11
Joined
Nov 24, 2006
Messages
242
I have a form that is open as a dialog form. Is there a way to determine what the position of the form is on the screen (not Access windows).

Is there a way to check if a user drag the dialog form to a different location on the screen?

I want to get the x and y position so that if the user click on that button again, I wan the dialog form to open up in the same position where it was previously.

I've been digging around and couldn't find any thing that will show me this.

Please help if you can.

As always, you guys are the greatest.

EZfriend.
 
When your form Open, you can use the Docmd.MoveSize to position the form.

When the form closes, save the position. This way you do nt need to worry about detecting the drag.

Where are you going to save the position in of the form by user? Maybe a table in the back end with a record for each user? Maybe the system registry?
 
Last edited:

Users who are viewing this thread

Back
Top Bottom