HScroll of ScrollableControl - Usage?

G

Gates72

Hi Gurus,

I am attempting to derive a User Control from the
ScrollableControl class. I need to have control over
which scrollbars get displayed.

According to MSDN:
"To manually override which scroll bars are visible, set
the VScroll and HScroll properties. If either property is
set to false, the corresponding scroll bar will not be
visible, even if the AutoScroll property is set to true."

However, I am either using it incorrectly, or finding
that this is not true. I set the HScroll property of the
control to false

this.HScroll = false;
but still get the scrollbar. Through debugging, I've
found that the HScroll property of the control is, in
fact, false.

Short of programming scrollbars "old school" style, does
anybody know of an alternative?

Thanks,
G72
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top