467,920 Members | 1,105 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,920 developers. It's quick & easy.

HScroll of ScrollableControl - Usage?

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
Nov 16 '05 #1
  • viewed: 4135
Share:
1 Reply
Try to use ShowScrollBar.
http://msdn.microsoft.com/library/de...us/shellcc/pla
tform/commctls/scrollbars/scrollbarreference/scrollbarfunctions/showscrollba
r.asp
Hope that helps.
Best regards.
Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by news.microsoft.com | last post: by
2 posts views Thread by tomvr | last post: by
6 posts views Thread by Yehia A.Salam | last post: by
10 posts views Thread by rdemyan via AccessMonster.com | last post: by
2 posts views Thread by Rune Jacobsen | last post: by
9 posts views Thread by 7stud | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.