scroll user control?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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
 
setting AutoScroll to true and AutoScrollMinSize works (scoll bars show ok)
but my painting is now off.

Any examples out there?

Thanks
 
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
 
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.
 
Back
Top