scroll just a section of a table

Is there a way to scroll just a section of a table?  So, I have 20 rows in a table.   I want to scroll rows 8 through 12.  I also want the rows above and below the scrolling area to stay aligned vertically.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Randy DownsOWNERCommented:
maybe this will help.

Public Class Form1
   Private Sub Form1_Load(sender As Object, e As EventArgs) _
      Handles MyBase.Load
      'create two scroll bars
      Dim hs As HScrollBar
      Dim vs As VScrollBar
      hs = New HScrollBar()
      vs = New VScrollBar()
      'set properties
      hs.Location = New Point(10, 200)
      hs.Size = New Size(175, 15)
      hs.Value = 50
      vs.Location = New Point(200, 30)
      vs.Size = New Size(15, 175)
      hs.Value = 50
      'adding the scroll bars to the form
      ' Set the caption bar text of the form.  
      Me.Text = ""
   End Sub
End Class

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
John BhattManagerCommented:
You can put that table inside a div element and then set height for div.
Let's have a look at below code

 <div style="height: 400px; overflow: auto" align="center">
<table border="1">

Open in new window

Get an example of Live working demo here.
HLRosenbergerAuthor Commented:
thanks for the feedback,
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.