I'm working on an app that shows its forms as a series of modal windows stacked on eachother. All forms are placed to the center of the screen. When the user moves the form around the screen, only the topmost one moves, others remain at the center and cannot be moved as they are blocked by the topmost dialog.
I'm trying to code a form-moving code that would move all the forms to the new location and also code that would open new forms at the current, non-centered location.
But something wierd happens when doing the latter - opening a new form in a non-centered position using Location of some other form (the bottom-most form). If I set the Location property of the form programatically, its size changes - the form gets smaller. Its Size property is changed from (240, 320), as set in the Designer GUI, to the smaller ClientSize (234, 294), which is present in the Designer-generated code. I've only found one post on the net referencing this problem, but no answers to it. If I leave the Location property alone, the Form is displayed correctly with the original size.
The StartPosition of the form is set to Manual, FormBorderStyle is FixedSingle, AutoScaleMode is either DPI or Font (I don't know gow to set this one).
Any ideas? Thanks.