user1884032 user1884032 - 4 years ago 137 Question

How to enable scrollbar even though the controls inside are disabled

I have a form and inside the form I have an

which holds some controls. Eg:

Me.UltraExpandableGroupBoxPanel.AutoScroll = True
Me.UltraExpandableGroupBoxPanel.Dock = System.Windows.Forms.DockStyle.Fill
Me.UltraExpandableGroupBoxPanel.Name = "UltraExpandableGroupBoxPanel"
Me.UltraExpandableGroupBoxPanel.Size = New System.Drawing.Size(500, 1000)

property is set to
so it can show the scrollbar. When the two controls are disabled, the scrollbar is also disabled and I cannot move the scrollbar to view the information from the bottom on the form. Is there a way to enable the scrollbar even though the controls are disabled?

Answer Source

Instead of making control disabled, try by making it read only and display control in grey color so that it looks similar to disabled mode.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download