|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Make form full screenHi
Is there a way to open a form at maximum size? That is, as if the user had clicked the maximise button. Thanks Vayse 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 > 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 >> > > 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 >>> >> >> > > "Vayse" <vvv> schrieb: Set the form's 'WindowState' property to 'Maximized' at design time.> Is there a way to open a form at maximum size? That is, as if the user had > clicked the maximise button. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> |
|||||||||||||||||||||||