When my Access app starts I wish to automatically maximise the initial form. I tried code like -
Const SW_SHOWMAXIMIZED = 3
Dim intWindowHandle As Long
intWindowHandle = Screen.ActiveForm.Hwnd
Maxit% = ShowWindow(intWindowHandle, SW_SHOWMAXIMIZED)
Basically this works BUT.. The problem is that whichever form event I use to trigger a function containing this code the line that gets the window handle always fails, because the forms window has not yet opened. I have tried just about every event there is with no success. I did find the help file that lists the order of these events, but that did not help.
So my basic question is, is there a way of maximising an apps first window?
My sub question is, is there any list that defines all the events available in event properties?
I am running Access 2007 on XP SP3