By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,897 Members | 1,118 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,897 IT Pros & Developers. It's quick & easy.

HScroll of ScrollableControl - Usage?

P: n/a
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?

Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Try to use ShowScrollBar.
Hope that helps.
Best regards.
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.