I'm developing a windows forms application. In my application I have anchored controls to forms such that forms can be maximized and controls will get arranged accordingly. This application should support different DPI values.
I have set the anchors of some controls to bottom, right, and bottom-right. The AutoScroll property of the forms is set to true. When the DPI value is on default (96) controls work as expected. But the problem is if the screen loads in higher DPI (like 120), even though form scroll bars enabled, controls which are anchored to bottom and bottom-right cannot be seen.
Could anybody please advise me on this issue?
regards, Eranga
Click Start > Settings. Under Windows Settings, scroll down, and then click Ease of Access > Display. Scroll down, and then set Automatically hide scroll bars in Windows to Off.
Just set the AutoScroll property of your Panel to true and it will handle adding the scrollbars for you. Bear in mind that your controls will need to be anchored to the Top of the Panel to cause Vertical scroll bars automatically, and the Left of the Panel to cause Horizontal scroll bars automatically.
Go to Settings / Ease of Access / Display and turn off Automatically hide scroll bars in Windows.
Open the Scroll Bars options page by choosing Tools > Options > Text Editor > All Languages > Scroll Bars.
Set AutoScroll = True
In Form Properties
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With