Click here to Skip to main content
15,889,808 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hello to all,
I would like to know is it possible to set form and controls on 4k monitor as it is on 2k?
https://s17.postimg.org/6rastma8f/1920x1080-_Scale100.png
https://s17.postimg.org/jvgd6b9zz/3840x2160-_Scale200.png

Any help is very appreciated!

What I have tried:

I have tried to decrease scale factor on Display Settings but no changes to better.
Posted
Updated 24-Jan-18 9:56am
Comments
blueye89 24-Jan-18 9:10am    
https://postimg.org/image/86cdicbbf/
https://postimg.org/image/ro70yafyz/
Richard MacCutchan 24-Jan-18 10:18am    
Both your links are wrong; please edit your question and correct them.
Dave Kreskowiak 24-Jan-18 11:31am    
So is this a WPF app or Windows Forms, or what?

It's a Windows Form.
Here are valid links:
https://postimg.org/image/86cdicbbf/
https://postimg.org/image/ro70yafyz/
 
Share this answer
 
You can try this simple trick, it's C# but should not be too hard to convert to VB:
// Scale form, AutoScaleMode.Font must be set for this to work.
this.Font = new Font(this.Font.Name, this.Font.Size + 2);
For a working example, see: RoundedButton Control - Demystifying DrawArc[^]
 
Share this answer
 
Comments
blueye89 24-Jan-18 17:45pm    
Thank you for advice! I forgot to say that I made a screenshot of the Form while project is not debugged. At the time when I made a project, I didn't have a monitor (I worked on my Lenovo P70 laptop). In the meaning time, I bought monitor and when I opened a project to get some piece of code for another project, I noticed that controls are ones above each other.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900