Forum > Beginners
change dimension and position of a form at runtime not working!?
speter:
Also, have a look at the form's position property. I have found that it can interfere with resizing the form if it is NOT set to the default ("designed").
cheers
S.
Mountaineer:
Many thanks to all of you! :)
Finally it WORKS!!!
I tried the following:
Compared the properties of the non working project-form with a reference-form of a standard project...
...and I noticed that some properties of the forms differ.
Conclusion: "AutoSize" of the form MUST be false! "Scaled" of the form MUST be true!
:D
Mountaineer
Bart:
--- Quote from: Mountaineer on May 18, 2021, 07:49:11 am ---Conclusion: ... "Scaled" of the form MUST be true!
--- End quote ---
If that is the case, then that really is a bug.
Bart
wp:
--- Quote from: Mountaineer on May 18, 2021, 07:49:11 am ---"Scaled" of the form MUST be true!
--- End quote ---
This certainly is wrong. The attached projects has Scale=false and still its position and size can be changed in the OnCreate event of the form. Opposite to AutoSize=true, in which the commands to set width and height are overridden by the actual size of the form - that's what AutoSize is good for. But still Left and Top can be changed even with AutoSize=true.
Bart:
I can confirm the findings of wp.
Conclusion so far: user error, not a bug.
Bart
Navigation
[0] Message Index
[*] Previous page