Window Sizing

  • Thread starter Thread starter Curt Emich
  • Start date Start date
C

Curt Emich

How do I make my window appear maximized when it first opens? This is a C#
program and it's the main window. I want to use the full screen, if
possible.

Also, in the development environment itself, I can't seem to get the form to
be as big as I want it to be. In other words, it won't stretch to full size
so that I can add controls that would take up the whole screen. It only
takes up about half the screen size, and it won't scroll any further.
 
How do I make my window appear maximized when it first opens? This is a
C#
program and it's the main window. I want to use the full screen, if
possible.

look at WindowState property of the form - the last one in Properties window
Also, in the development environment itself, I can't seem to get the form to
be as big as I want it to be. In other words, it won't stretch to full size
so that I can add controls that would take up the whole screen. It only
takes up about half the screen size, and it won't scroll any further.

Check out Size property - or via code:
Form1.Size.Height = ... ;
Form1.Size.Width = ... ;

or shorter:
Form1.Width = ...;
Form1.Height = ...;

where you must replace "Form1" with the name of your form!


Jeti
 
Actually, it's not a windows form. It's an .aspx page. I'm still
having a hard time finding a property that takes care of this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top