ajetrumpet
Banned
- Local time
- Today, 01:23
- Joined
- Jun 22, 2007
- Messages
- 5,638
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:
Then, when you want to maximize the window (at whatever point you want), write this line of code:
You 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:
Code:
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 = 2
Code:
apiShowWindow ie.hwnd, SW_MAXIMIZE
Last edited: