How can I make an autosize form include all the objects in a form designer?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you mean that the controls inside the form should autosize when the form resizes?
Just set the
Anchorproperty of the controls, if you set it to anchor to all 4 sides, they’ll resize exactly like the form they’re in.If you need to do anything more advanced you can handle the forms resizing event and write code in there to resize other things at the same time.