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

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
Answered
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
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 5, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json