C# – Enable scroll bars in windows forms

cwinforms

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

Best Answer

Set AutoScroll = True In Form Properties

Set AutoScroll = true on form

Related Topic