Main DB Windows Size

thegump

New member
Local time
Today, 01:37
Joined
Feb 15, 2005
Messages
3
I posted another thread about how to change the size and position of the main DB windows and I received a reply to use the movesize command in docmd but this doesn't help for the "MAIN" db window!!!!!!! I mean the main DB window, the one with tables, query, forms, reports etc. I need to change the size and position of this one! :D
 
The 'main' DB window can only be sized by means of the maximize and minimize buttons ( top right ).
As far as I know, you can't size this windows thru VB.
Only forms can be sized thru VB.
 
Option Compare Database
Option Explicit

Declare Sub SetWindowPos Lib "User32" (ByVal hWnd&, _
ByVal hWndInsertAfter&, _
ByVal X&, ByVal Y&, ByVal cX&, _
ByVal cY&, ByVal wFlags&)

Global Const HWND_TOP = 0 'Moves MS Access window to top
'of Z-order.

'Values for wFlags.

Global Const SWP_NOZORDER = &H4 'Ignores the hWndInsertAfter.


Function SizeAccess()
Dim cX As Long, cY As Long, cHeight As Long
Dim cWidth As Long, H As Long
'Get handle to Microsoft Access.
H = Application.hWndAccessApp

cX = 15
cY = 15
cWidth = 650
cHeight = 500

'Position Microsoft Access.
SetWindowPos H, HWND_TOP, cX, cY, cWidth, cHeight, SWP_NOZORDER
Application.RefreshDatabaseWindow
End Function
 
Main DB Windows Size automatic center...

Everywhere in the middle of the monitor can be set to automatic, this is what will happen? Please help me.
 
you are posting to a 7 year old thread - please start a new thread and explain clearly what your problem is and what you want as a solution - your current post is extremely unclear
 
Any LED / monitors, to any screen resolution,Main DB Windows Size center.
 
I mean the main DB window, the one with tables, query, forms, reports etc. I need to change the size and position center of this one!
 

Users who are viewing this thread

Back
Top Bottom