Home All Groups Group Topic Archive Search About

Make form full screen

Author
15 Dec 2006 12:36 PM
Vayse
Hi
Is there a way to open a form at maximum size? That is, as if the user had
clicked the maximise button.
Thanks
Vayse

Author
15 Dec 2006 2:14 PM
Miro
fMain = New frmMain
                fMain.WindowState = FormWindowState.Maximized
                fMain.Show()


? Not sure if thats what you were asking for.

M.

Show quoteHide quote
"Vayse" <vvv> wrote in message news:eeHXtVEIHHA.1240@TK2MSFTNGP03.phx.gbl...
> Hi
> Is there a way to open a form at maximum size? That is, as if the user had
> clicked the maximise button.
> Thanks
> Vayse
>
Author
15 Dec 2006 3:30 PM
Vayse
Thats it, thanks.

Show quoteHide quote
"Miro" <miron***@golden.net> wrote in message
news:uFtUJNFIHHA.4068@TK2MSFTNGP03.phx.gbl...
>                fMain = New frmMain
>                fMain.WindowState = FormWindowState.Maximized
>                fMain.Show()
>
>
> ? Not sure if thats what you were asking for.
>
> M.
>
> "Vayse" <vvv> wrote in message
> news:eeHXtVEIHHA.1240@TK2MSFTNGP03.phx.gbl...
>> Hi
>> Is there a way to open a form at maximum size? That is, as if the user
>> had clicked the maximise button.
>> Thanks
>> Vayse
>>
>
>
Author
15 Dec 2006 10:23 PM
Miro
You can also set the properties on the form itself to always show maximized.
See the "WindowState" property.

I have had an instance of this that it did not create the form "Maximized"
during runtime.  That is why i do it the 'coding' way instead.

Miro


Show quoteHide quote
"Vayse" <vvv> wrote in message
news:%23o7VM3FIHHA.1248@TK2MSFTNGP03.phx.gbl...
> Thats it, thanks.
>
> "Miro" <miron***@golden.net> wrote in message
> news:uFtUJNFIHHA.4068@TK2MSFTNGP03.phx.gbl...
>>                fMain = New frmMain
>>                fMain.WindowState = FormWindowState.Maximized
>>                fMain.Show()
>>
>>
>> ? Not sure if thats what you were asking for.
>>
>> M.
>>
>> "Vayse" <vvv> wrote in message
>> news:eeHXtVEIHHA.1240@TK2MSFTNGP03.phx.gbl...
>>> Hi
>>> Is there a way to open a form at maximum size? That is, as if the user
>>> had clicked the maximise button.
>>> Thanks
>>> Vayse
>>>
>>
>>
>
>
Author
15 Dec 2006 10:33 PM
Herfried K. Wagner [MVP]
"Vayse" <vvv> schrieb:
> Is there a way to open a form at maximum size? That is, as if the user had
> clicked the maximise button.

Set the form's 'WindowState' property to 'Maximized' at design time.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/>