Docking a form...

drblackard

Registered User.
Local time
Today, 17:15
Joined
Aug 15, 2006
Messages
22
I have a form. I have created a print menu and a button. When I open print menu by clicking on the button (using a macro) it opens my print menu form but it is not near my print menu button. How can I dock the print menu form (very small form) near the print menu button? Thanks in advance for your help.
 
There's no automatic way to do this, to my knowledge, but it can be done with a little bit of trial and error.

1) AutoCenter Property for the form must be set to No**
2) In design view move form to correct position
3) Click on Save
4) Close the form without doing anything else!

Repeat these steps until you get the form positioned exactly like you want it.

**BTW, I know it sounds daft, but even if you're trying to center a form, you need to have the AutoCenter Property set to No!

Good Luck!

Linq ;0)>
 
I got it...I used this code and found my spot...

Private Sub Form_Open(Cancel As Integer)
'''It will allow you to size the form [height & Width] and place the form where you want it. Use the command in the OnOpen event of the form.

DoCmd.MoveSize 2500, 1200, 2250, 3500
End Sub


The code numbers are: distance from the left (2500), distance from top(1200), width of form(2250), height of form(3500)


Thanks for your help.
 

Users who are viewing this thread

Back
Top Bottom