Hi
Every time I Open my userform in access (by clicking on the forms shorcut) the window opens and the userform appears in a no quiet maximised state. I have to click on the maximise symbol on the top right corner to make it fit the window.
Is there any setting or property which will automatically maximise the form to the size of the window. I can use a macro which works fine though there must be a standard way of doing this.
Thanks
Danny2000
Last edited by danny2000; 04-21-2009 at 05:52 AM.
I just created a UserForm for a test. I put the width and height dimensions in the initialize event like this:
Then in the VBA module I use:Code:Private Sub UserForm_Initialize() With UserForm1 .Width = 640 .Height = 480 End With End Sub
It brings the form up in the larger dimension, which indicates that you can set it to fit your full screen size.Code:Sub UFtst() UserForm1.Show(Modal) MsgBox "Check Size" Unload UserForm1 End Sub
ExlGuru
Hi danny2000,
Insert this code in your form's code window:
Cheers,Code:Private Sub Form_Open(Cancel As Integer) DoCmd.Maximize End Sub
Docendo discimus.
Please consider:
- Thanking those who helped you. Click the reputation icon
in the contributor's post and add Reputation.
- Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.
Fantastic. Thanks very much.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks