Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi developers

my programme contains a Form, and that Form should always be in Max size (WindowState = MaxiMized )
My question is : can I layout pictureBoxes , Buttons and other controls at design time

thanks in advance
Posted
Comments
CPallini 5-Nov-10 5:05am    
Shouldn't your question be: "how do I rearrange the positions of the controls at runtime to fit the window (max) size?"
OriginalGriff 6-Nov-10 5:03am    
"thanks OrginaGriff you're right"
You are welcome, but in future if you want to respond then use the "Add Comment" feature rather than posting an answer. The later will only send emails to you, the former will send emails to the person you are commenting to. Just like this did...
Toli Cuturicu 6-Nov-10 15:20pm    
My screen is 3840x1200... Are you sure you want to fill all of it with your window??

1 solution

Yes. But what effect do you think it will have?
What resolution is the user running? 1024 x 768? 1680,x 1050? 640 x 480?
What shape is his / her screen - old style square, or newer widescreen?

Is it going to be the same as yours? Always?

Of course it isn't!

So instead of laying it out for maximised (which would annoy the heck out of me, none of my apps run maxed - too much wasted screen real estate), lay it out for a sensible size, based on the content. Then allow for screen resizing by using the dock and anchor properties.

Remember, it is a very bad idea to fill any form with lots of controls - it just gets confusing. Instead, open sub forms as needed, or use tabs.
 
Share this answer
 
Comments
OriginalGriff 6-Nov-10 5:02am    
"thanks OrginaGriff
you're right" - alladeen

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900