The display resolution is different. Some winform controls are not completely displayed on other machines.
The effects on the development machine are as follows:
The effect on other computers is as follows:
Solution:
Set the AutoScaleMode attribute of the form to None. Try again.
For AutoScaleMode attributes, see http://technet.microsoft.com/zh-cn/magazine/system.windows.forms.autoscalemode (VS.90). aspx
C # How to control the position of the control in the text form loaded by the panel changes with the display resolution
Yi_mzy has clearly understood people's questions. Since it is a subform, it should basically be WINFORM.
System. Windows. Forms. Screen screen = Screen. PrimaryScreen;
System. Drawing. Rectangle RDBMS = screen. Bounds;
// RDBMS. Height. ToString (); // Height
// RDBMS. Width. ToString (); // Width
The above is the resolution code.
Then, calculate the Location Value of each space based on the value of the IDC.
C # How can I enable automatic adaptation and display when winform is too large to be installed on a small-screen computer?
I am not very clear about the resolution, but theoretically, NET does not provide adaptive technology.
You must control the size and font of the window.
WindowState = Maximized may meet certain requirements, but the font size of the control remains the same as that of the screen.
You can add an initialization function in the form constructor to determine and adjust the form, control, and font.
The Screen. PrimaryScreen class can obtain information about the display, including the resolution. For details, see Baidu