469,591 Members | 1,839 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Scroll Bars Visible

Is there any way of knowing if scrollbars have appeared in a control that
has a ScrollableControl that has AutoScroll set to True?

I have found this:

http://msdn.microsoft.com/library/de...sibleTopic.asp

But it states that "is not intended to be used directly from your code".

TIA
Nov 25 '05 #1
1 1814
elziko,

ScrollableControl has properties VSroll and HScroll that returns the current
visiblity of the scrollbars. There no event(s) thought that fires when they
change. However the scroll bars can appear/disappear in several situations:
size of the control changes, new children has been added or existing child's
size or position has canged, autoscroll margins changed, etc. All these
changes require the control content to be re-leyout of the content, therefor
scrollable control's Layout event can be used as a trigger to check VScroll
and HScroll properties for changes.
HTH
Stoitcho Goutsev (100) [C# MVP]
"elziko" <el****@yahoo.co.uk> wrote in message
news:ev**************@TK2MSFTNGP11.phx.gbl...
Is there any way of knowing if scrollbars have appeared in a control that
has a ScrollableControl that has AutoScroll set to True?

I have found this:

http://msdn.microsoft.com/library/de...sibleTopic.asp

But it states that "is not intended to be used directly from your code".

TIA

Nov 25 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Arlie Rahn | last post: by
4 posts views Thread by Bill Sonia | last post: by
1 post views Thread by edi sol | last post: by
7 posts views Thread by Sharon | last post: by
1 post views Thread by KK | last post: by
6 posts views Thread by =?Utf-8?B?U2hhcm9u?= | last post: by
6 posts views Thread by bgold12 | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.