ajetrumpet
05-02-2009, 04:35 AM
There are two ways to maximize the window when running Internet Explorer:
1) Under "RUN" in the property sheet for the IE icon, choose "Maximize" instead of the default, which is "Normal" (only applies to Vista users).
2) Insert this code into a normal module in your database:Option Explicit
Declare Function apiShowWindow Lib "user32" Alias "ShowWindow" _
(ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Global Const SW_MAXIMIZE = 3
Global Const SW_SHOWNORMAL = 1
Global Const SW_SHOWMINIMIZED = 2Then, when you want to maximize the window (at whatever point you want), write this line of code:apiShowWindow ie.hwnd, SW_MAXIMIZEYou first though, have to declare the IE object and such, but that is how you do it.
1) Under "RUN" in the property sheet for the IE icon, choose "Maximize" instead of the default, which is "Normal" (only applies to Vista users).
2) Insert this code into a normal module in your database:Option Explicit
Declare Function apiShowWindow Lib "user32" Alias "ShowWindow" _
(ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Global Const SW_MAXIMIZE = 3
Global Const SW_SHOWNORMAL = 1
Global Const SW_SHOWMINIMIZED = 2Then, when you want to maximize the window (at whatever point you want), write this line of code:apiShowWindow ie.hwnd, SW_MAXIMIZEYou first though, have to declare the IE object and such, but that is how you do it.