Panel

  • Thread starter Thread starter Charles A. Lackman
  • Start date Start date
C

Charles A. Lackman

Hello,

I have a panel on a form that holds a large number of controls. When I
scroll the panel down and leave the form and then come back, the panel is
still in the last position I left it. Is there a way to make the panel go
back to the top position.

I have tried the following with no success.


Dim APoint as Point
APoint = New Point(0, 0)
frm1Main.Panel1.AutoScrollPosition = APoint

Any Suggestions will be greatly appreciated,

Chuck
 
Hi,

I dont think you are changing the autoscroll postion for the right
panel. Try this instead.

Me.Panel1.AutoScrollPosition = APoint

or

Panel1.AutoScrollPosition = APoint


Ken
 
Hello,
frm1Main is the page I leave and come back to that contains the panel. Are
you suggesting that I place this code inside the load event instead of the
parent form where it is called.

Currently:

Dim APoint as Point
APoint = New Point(0, 0)
frm1Main.Panel1.AutoScrollPosition = APoint
frm1Main.ShowDialog()

Chuck
 
Back
Top