I am looking for a way for some controls to have Anchor = Top, Bottom, Left, Right at design time so they would change when I scale the parent form. But doesn’t do this at runtime when the parent form is scaled.
Is there something like this?
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.
You can use the
DesignModeproperty to detect whether the control is currently in design mode or not. That way you should be able to set an appropriate value in theAnchorproperty (and other properties as well) to behave as you wish in design- and non-design modes.