VB.Net Forms Application and Resolution

~OSD~ 2,201 Reputation points
2023-03-20T14:16:54.7233333+00:00

Hi,

I have a VB Forms application, which is compiled at 1366 x 768 resolution. There is a need to run this application on different resolutions and scaling variations. What would be the best options to meet the destination resolution? Or change the system resolution to 1366 x768 and revert back to previous (dynamically)? Or something similar etc.?

Developer technologies | Windows Forms
0 comments No comments
{count} votes

Accepted answer
  1. Jiachen Li-MSFT 34,221 Reputation points Microsoft External Staff
    2023-03-22T08:56:35.52+00:00

    Hi, welcome to Microsoft Q&A.

    You can try change the AutoScaleMode of Form to the Dpi which specifies the different types of automatic scaling modes supported by Windows Forms.
    Then you can try to use Dock and Anchor properties to auto resize and adjust Form controls.

    Best Regards. 

    Jiachen Li 


    If the answer is helpful, please click "Accept Answer" and upvote it. 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.   

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.