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
Ken Tucker [MVP] - 28 Dec 2004 08:55 GMT
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,
>
[quoted text clipped - 12 lines]
>
> Chuck
Charles A. Lackman - 28 Dec 2004 17:52 GMT
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
> Hello,
>
[quoted text clipped - 12 lines]
>
> Chuck