שתף באמצעות


VB.NET: How to move the veritcal scrollbar to bottom through code?

Question

Wednesday, September 11, 2013 6:39 PM

When the Form resize to small. Both Veritcal and Horizontal scrollbars show up.

We want move the scroll bar to the most right and bottom after resizing form.

How do we do that? thx!

JaneC

All replies (2)

Wednesday, September 11, 2013 7:39 PM ✅Answered

You can set the form's AutoScroll position to a point in the lower right corner of the form.

Me.autoscrollposition = New Point(me.Width, Me.Height)

The difference between genius and stupidity is that genius has its limits.


Sunday, September 15, 2013 9:44 AM

Also, see these

                Me.ScrollControlIntoView(<control>)
                Me.ScrollToControl(<control>)

Leon C Stanley - - A dinky di VBer - - Code is like fresh baked bread - it goes stale after a while - - so why try to immortalize it ? and turn it into a Class? ^^ :-)