Search:
Namespaces
Discussions
.NET v1.1
Feedback
Using Scrollbars with User Painted Controls
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.framework.windowsforms
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...
Alex Glass
Im using double buffering to draw a scheduling grid on a form. The grid can
take up more space than the form can display. I would like to use a
scrollbar to control which part of the window the user can view. Does
anyone know a simple way to do this?
Any help is always greatly appreciated,
-Alex
Reply to this message...
Herfried K. Wagner [MVP] (VIP)
* "Alex Glass" <
Click here to reveal e-mail address
> scripsit:
[Original message clipped]
Take a look at the control's 'AutoScroll' property (inherited from
'ScrollableControl').
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Reply to this message...
Alex Glass
The problem with the autoscroll property is that the origin (X,Y start of
drawing) remains the same while using the scrollbar. This means that if i
scroll down to the bottom of the page, the window still only paints the
upper portion. Furthermore I was unable to find the event that reacts to
the scrollbar moving.
-Alex
"Herfried K. Wagner [MVP]" <
Click here to reveal e-mail address
> wrote in message
news:u$
Click here to reveal e-mail address
...
[Original message clipped]
Reply to this message...
System.Windows.Forms.ScrollableControl
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com