Re: scroll user control? by Serg
Serg
Tue May 09 10:50:02 CDT 2006
I am not going to draw scroll bars myself, what's the point? All I needed to
do was to adjust my drawing by the AutoScrollPosition and set scroll
dimentions to the size of my control (e.g. Paint area). Problem solved.
"VJ" wrote:
> Don't set the AutoScroll property..., turn both of... do it in the paint
> manually, not set the property.. but paint the scroll bar i.e draw one to
> what size you want... that should do it
>
> maybe codeproject.com will have a sample..? did u try to google it ?
>
> Vijay
>
> "Serg" <Serg@discussions.microsoft.com> wrote in message
> news:79F320A2-89E7-4BD8-800A-3DBB3C9C781D@microsoft.com...
> > setting AutoScroll to true and AutoScrollMinSize works (scoll bars show
> > ok)
> > but my painting is now off.
> >
> > Any examples out there?
> >
> > Thanks
> >
> >
> >
> > "VJ" wrote:
> >
> >> Since you are painting the entire control.. you will have to set the
> >> scrollbars in the paint manually.. just setting AutoScroll to true will
> >> not
> >> work
> >>
> >> VJ
> >>
> >> "Serg" <Serg@discussions.microsoft.com> wrote in message
> >> news:E5852739-7430-409E-AA72-F1A1461FC4F6@microsoft.com...
> >> >I am painting my control entirly and need it to show scroll bars when
> >> >it's
> >> > being resized below it's min size. Please suggest how to go about this.
> >> > Simply setting autoscroll to true does not work. Thansk in advance.
> >>
> >>
> >>
>
>
>