how can I control the size of application window?
application window
Collapse
X
-
Tags: None
-
hi
first if the your application window is a form:
you can use this code for controlling the size of your form
Hope this helpsCode:Private Sub Form_Open(Cancel As Integer) DoCmd.MoveSize Height = value DoCmd.MoveSize Down = value DoCmd.MoveSize Width = value End SubComment
-
Comment
-
Comment
-
-
-
It is a little complicated, but you can search for Help on the SetWindowPos() API Function, which will allow you to precisely size the Main Access Window among other things. The Declaration for this Function is:
P.S. - Be sure to pass Application.hWn dAccessApp as the 1st Argument to the Function (Handle to the Access Window).Code:Declare Function SetWindowPos Lib "user32.dll" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long
Comment
Comment