Home > Archive > Visual Basic Syntax > March 2005 > Automatically Maximize Application Windows
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Automatically Maximize Application Windows
|
|
|
| Hi guys,
Can someone tell me what the syntax is to automatically maximize an
application window as soon as its activated.
Thanks
| |
|
| There are 2 ways you can accomplish this. First, when you design the opening
form you can set the windowstate property to maximized. Second, in your code
you can enter frmName.windowstate = 2
Hope this is what you are looking for.
Ray
"Ricky" wrote:
> Hi guys,
>
> Can someone tell me what the syntax is to automatically maximize an
> application window as soon as its activated.
>
> Thanks
| |
|
| Ray,
Would suggest using the Window State constants of vbNormal, vbMinimized and
vbMaximized. Makes the code clearer.
CF
"RayH" <RayH@discussions.microsoft.com> wrote in message
news:789B7330-DF5E-4990-9D19-EFEF0090B9EF@microsoft.com...[color=darkred]
> There are 2 ways you can accomplish this. First, when you design the
> opening
> form you can set the windowstate property to maximized. Second, in your
> code
> you can enter frmName.windowstate = 2
>
> Hope this is what you are looking for.
>
> Ray
>
> "Ricky" wrote:
>
|
|
|
|
|