Click to See Complete Forum and Search --> : [RESOLVED] Form - Vertical Scroll Position - ????
JohnSavage
May 31st, 2007, 09:41 AM
I am trying to view a form with it scrolled to the top when it comes into view, I have tried this
Form3.ScrollControlIntoView(Form3.Label34)
With no luck, at the moment when the form is viewed it is in the same position as last time it was visible which is not what I want to happen.
Is this possible :confused:
Strider
May 31st, 2007, 11:16 AM
check out this
http://samples.gotdotnet.com/quickstart/CompactFramework/doc/scrolling.aspx
JohnSavage
May 31st, 2007, 11:38 AM
Barry
The form does not have a vertical scrollbar but it has autoscroll enabled which creates a vertical scrollbar if the form needs to scroll to display all of the controls which it does.
This autoscrollbar does not seem to have a vScrollBar.Value and therefore I cannot set it :confused:
I have tried these to date all with no luck :eek2:
Form3.ScrollControlIntoView(Form3.Label34)
Form3.vScrollBar1.Value = 0
Form3.AutoScrollPosition = 0
Form3.AutoScrollPosition(0, 0)
Form3.AutoScrollPosition(1, 1)
Form3.PerformAutoScale()
:sick:
JohnSavage
Jun 8th, 2007, 05:59 AM
Come come Guys it's nearly a week now - any ideas on this one ??
petevick
Jun 8th, 2007, 08:18 AM
Hi,
try
Me.AutoScrollPosition = New Point(label234.left, label234.top)
Pete
JohnSavage
Jun 10th, 2007, 04:23 PM
Pete
You are the man!
Many thanks (again!)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.