The display resolution is different. Some winform controls are not completely displayed on other machines.

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.