Control the size of a webform

This is a real beginners question?

I would like myForm.aspx to open maximized when it loads?
Also if you can do that then how do you resize the form?

I thought it should be something like me.size=new size(1092,768) or something but I can find no such property or attribute called size for a webform.

Seems like this should be an easy thing to do. Win Form is what something like:

Forms.myForm.windowstate=maximized or something like it... So all that being asked what I'm really looking for is the equivalent line of code to cause this same behaivor using a WebForm?

Thanks for your help,

Rick

[610 byte] By [RickH] at [2007-12-16]
# 1

This really isn't a VB.Net question, per say, since you actually can't control the size of the web browser using VB.Net code like a Windows Forms application.

When a user browses to a web page, the expected behavior is that the web browser will remain the same size and view state. You can, however, have the web page open a new browser window at a specified size using client side JavaScript or VBScript.

Take a look at this link. It might help:

http://www.javascripter.net/faq/openinga.htm

MikeCarterMS at 2007-9-9 > top of Msdn Tech,Visual Basic,Visual Basic General...