For Programmers: Free Programming Magazines  


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
Ricky

2005-03-07, 4:09 pm

Hi guys,

Can someone tell me what the syntax is to automatically maximize an
application window as soon as its activated.

Thanks
RayH

2005-03-07, 4:09 pm

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

Wart

2005-03-11, 4:02 pm

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:
>


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com