Hi,
I have a custom control which is a descendant of ScrollableControl.
I have everything working fine, except I want to be able to adjust the
scroll position in code.
I have created some 'hot spot' areas around the edges of the control,
and I want to be able to change the values of the scrollbar positions
when the mouse is over one of these areas - but I don't seem to be able
to get access to the actual scroll bars.
There must be a way of doing this.
I am using c# and VS2003
Please help - this is driving me mad!
Thanks.
Paul Cheetham
Bob Powell [MVP] - 23 Jan 2006 12:28 GMT
You can just change the values of the AutoScrollPosition property and the
scrollbars will follow.

Signature
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
> Hi,
>
[quoted text clipped - 16 lines]
>
> Paul Cheetham