When user changes his Windows display settings of the size of text, apps, and other items to 125%, 150%, etc, how can a Windows Application can automatically response to the changes without breaking its structure and texts.
The solution is that we should let the .NET Framework to work on it automatically by using the following line of code.
Additionally, you may need to set the Application property of the main project's Properties to "Create application without a manifest".
Don't forget to set the Autosize property of the form to true.
Happy coding...
The solution is that we should let the .NET Framework to work on it automatically by using the following line of code.
this.AutoScaleMode = AutoScaleMode.Dpi;
Additionally, you may need to set the Application property of the main project's Properties to "Create application without a manifest".
Don't forget to set the Autosize property of the form to true.
Happy coding...
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.