Home > Net >  C # form application runtime control overflow size incomplete control display in the window size wha
C # form application runtime control overflow size incomplete control display in the window size wha

Time:10-08

As shown, the form attributes of the program in the editor window, the window clearly contains controls, but when click on the run window display size is small, the inside of the lead to control display incomplete, can solve a problem, please ask everybody to give directions, thank you

CodePudding user response:

Design window, select your control, and set the Anchor (Anchor) property, to the left, and right are checked,
Such run time, around the border of the space, will be anchored to the actual interface,

CodePudding user response:

set the Anchor

CodePudding user response:

Form is edge, the edge depends on the size of the operating system type, style, etc., thus to actual use area (Client) is not fixed, you can use the Anchor set the alignment of the control, or use the Dock Dock property is set, by the system to determine the size of the runtime,
  •  Tags:  
  • C#
  • Related