It was some time ago when I posted this question. I have been asked if I sorted this out so below is the solution I used (I should have posted this earlier but better late than never).
As I was unable to get large scroll bars on the standard panel I created a HScrollBar (which can be resized to be wider) over the top of the edge of the panel so that the panels horizontal scroll bar was no longer visible. I then used the following code to setup the scroll bar, make it visible when required and to perform the scrolling
Code:
Private Sub HScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles HScrollBar1.Scroll
Panel1.HorizontalScroll.Value = HScrollBar1.Value
End Sub
Private Sub Panel1_ControlAdded_Removed(ByVal sender As Object, ByVal e As System.Windows.Forms.ControlEventArgs) Handles Panel1.ControlAdded, Panel1.ControlRemoved
If Panel1.HorizontalScroll.Visible = True Then
HScrollBar1.Visible = True
HScrollBar1.Maximum = Panel1.HorizontalScroll.Maximum
HScrollBar1.Minimum = Panel1.HorizontalScroll.Minimum
HScrollBar1.SmallChange = Panel1.HorizontalScroll.SmallChange
HScrollBar1.LargeChange = Panel1.HorizontalScroll.LargeChange
Else
HScrollBar1.Visible = False
End If
End Sub
Not sure if this is the best approach but it worked for me. If anyone has a better solution please feel free to post it.
Hope this is of assistance to anyone trying to do the same thing.
Bookmarks