Hello,
I was using a Panel control and wanted the following behaviour:
- AutoScroll to be able to set an AutoScroll position (to synchronise two scrollable panel)
- Hide both scrollbars to define my scrollBar common to my two forms.
Accordingly to the MSDN which says:
But if my panel is correctly "AutoScrolled", both ScrollBars are visible.
Does anyone has already experienced that and found a solution / workaround?
Thanks,
I was using a Panel control and wanted the following behaviour:
- AutoScroll to be able to set an AutoScroll position (to synchronise two scrollable panel)
- Hide both scrollbars to define my scrollBar common to my two forms.
Accordingly to the MSDN which says:
I create my own Panel object with that simple definition:To manually override which scroll bars are visible, set the VScroll and HScroll properties. If either property is set to false, the corresponding scroll bar will not be visible, even if the AutoScroll property is set to true
Code:
Public Class myPanel
Inherits Panel
Public Sub New()
MyBase.New()
Me.HScroll = False
Me.VScroll = False
Me.AutoScroll = True
End Sub
End Class
Does anyone has already experienced that and found a solution / workaround?
Thanks,