[SOLVED] Controls anchored to the right of a form do not get moved when the form is displayed maximised

Answered Closed
0
0
  • Create a simple project that has a form at the default size.
  • Set the forms WindowState to maximised
  • Add a label to the form, put it up against the right hand edge of the form.
  • Anchor the label to the top, right.

Run the project

The label will remain in its design position rather than move with the edge of the form. This used to work in previous builds but seems to have broken in Build 1.2.38.0.

Nic

 

  • You must to post comments
Best Answer
0
0

If you change this.ResumeLayout(false); to this.ResumeLayout(true); in the Designer.cs file – last line, it fixes it. This will be fixed quickly on our end. The designer generates (true) sometimes and (false) some other…

  • You must to post comments
0
0

Thanks Luca, that fixed it.

Nic

  • You must to post comments
0
0

Thanks. It’s related to WJ-7487: Child controls inside SplitContainer don’t resize when application starts with WindowState = Maximized

The problem occurs when starting maximized. Reopened.

  • You must to post comments
Showing 3 results