problem is when i set my windowstyle to none and change resizemode to no resize, and run it, the height and width is bigger at runtime
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.
I’d say you’ve either set the height and width of the window to be larger than the window would automatically size to adjust to its contents. Or done the opposite.
EDIT
Ok, so considering the new information in the comments below:
The reason why the button’s position has changed is because you’ve explicitly set the
Marginof theButtonto be 203 units left and 209 units down from the top left point of the containing panel (I.E. your grid; Which is why it appears where it does.I’m unsure why the preview is incorrect in this case.