472,127 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

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 1856
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.