is there a way to set a form to the max screen size, it gets old going back and forwards making sure it fits.
I have been using table layout panels to help make my forms, if I am right, those do scale to the form, requardless of the size of the form, I think
Davids Learning

Max form size
dsallow
There are two quick and easy ways you can set the form's size to be the max screen size.
You can either set it's WindowState property to Maximized either in the designer or in code, or you can set the form's Location and Size properties based on the primary screen on the system like so:
Me.Location = Screen.PrimaryScreen.WorkingArea.Location
Me.Size = Screen.PrimaryScreen.WorkingArea.Size
Be sure that if you do set any of these properties in code that you do so after the form designers generated code has executed.
tdcntt
I frazed this one wrong.
What I meant is when you make a form, how do you know automatically how wide and tall
I know about how to launch your form maximzed.
Usually when you start a new form, you have to lay out your controls, when I lay mine out, I like to use the whole window, so for me I have to go back and forth from design to build to see how my form is laid out.
I have a lot of redneck in me
, sometimes what I think and what I say dont match!!!
Davids Learning
HopeDreamsComeTrue
You can resize the form in the IDE: if they are all anchored properly, then they will resize appropriately. That'll give you an idea as to what it looks like. Even so, it sounds like there's something missing, here. Just run the application and play with the form size: we are talking about 30 seconds of time - far less time to write a forum post
.
Biresh Singh
Rohit Tela
I think, "the best" way is to set the form's size property to your screen size... If you're using 1024x768, then make your form 1024x738 (30 pixels reserved for taskbar)... However, that's only appropriate for the current screen resolution on *your* computer...
Andrej
shanlini
Also note that your app could run on computers with different display settings (800x600, 1024x 768, 1280x1024, 1650x1024, ...)
TableLayoutPanel, together with its content cells, will size with the form, if docked to Fill or properly anchored.
Andrej
CraftyFella
and/or
Me
.MaximumSize = New System.Drawing.Size(My.Computer.Screen.Bounds.Width, My.Computer.Screen.Bounds.Height)