Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2004

Tip: Looking for answers? Try searching our database.

Panel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Charles A. Lackman - 27 Dec 2004 01:45 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.