[RESOLVED] Form - Vertical Scroll Position - ????
I am trying to view a form with it scrolled to the top when it comes into view, I have tried this
Code:
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:
Re: Form - Vertical Scroll Position - ????
Re: Form - Vertical Scroll Position - ????
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:
Re: Form - Vertical Scroll Position - ????
Come come Guys it's nearly a week now - any ideas on this one ??
Re: Form - Vertical Scroll Position - ????
Hi,
try
Me.AutoScrollPosition = New Point(label234.left, label234.top)
Pete
Re: Form - Vertical Scroll Position - ????
Pete
You are the man!
Many thanks (again!)