|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Re: Using Scrollbars with User Painted Controlsg.TranslateTransform(this.AutoScrollPosition.X, this.AutoScrollPosition.Y); before painting HTH Paul Wardle Show quote "Alex Glass" <force***@hotmail.com> wrote in message news:3FZ1d.37500$Ot3.33778@twister.nyc.rr.com... > 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]" <hirf-spam-me-here@gmx.at> wrote in message > news:u$svRGxmEHA.2684@TK2MSFTNGP12.phx.gbl... >> * "Alex Glass" <force***@hotmail.com> scripsit: >> > 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? >> >> 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/> > > |
|||||||||||||||||||||||