0

I am having a tough time in vb.net to make the scrollbars to work of the contents of a panel.... here is my code

Private Sub HScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles HScrollBar1.Scroll
Panel122.Left = HScrollBar1.Value

now, i want to change .Left to .Right, but it won't let me?
HELP!!!!!

2
Contributors
3
Replies
7
Views
7 Years
Discussion Span
Last Post by Oxiegen
0

The Left property is the horizontal position of the panel within it's parent container, there is no Right property.
If you need to move the panel from left to right, then you have to change the value of Left.

Panel122.Left = 0, means that the panel is at it's left-most position.
Panel122.Left = parent.Width, means that the panel is at it's right-most position.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.