473,396 Members | 1,666 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 1893
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Arlie Rahn | last post by:
I would like to ad a custom scroll bar control to my app that has a customizable and "flat" look to it (not the normal VB look). Does anyone have any ideas on where to find a good one?
4
by: Bill Sonia | last post by:
It seems whenever I set a DataGrid.DataSource = DataTable (vb.net) to populate a datagrid, the scroll bars on the datagrid default to disabled. And the only way I can get them to enable is to...
1
by: edi sol | last post by:
Hi, I am writing a hex edit control from a UserControl. I use drawtext method of the graphics object in the OnPaint. When the text which I draw go out of the visible rectangle of the control I...
7
by: Sharon | last post by:
I’m using the Panel control that contains a PictureBox control (for implementing the http://www.codeproject.com/cs/miscctrl/PictureBox.asp). The Panel is set to AutoScroll = true. I wish to...
2
by: usenet | last post by:
When I open a form design window in Access 2003 it *always* has scroll bars, this is even when the form itself is tiny. It's as if the 'page' on which the form is being designed is very large. ...
1
by: KK | last post by:
Dear All How do I programmatically find out whether Windows Form object is having scroll bars visible and how to find out the client area ( excluding scroll bars) when my form object's AutoScroll...
6
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I'm using the VScrollBar and set it as follow: m_vScrollBar.Minimum = -19602; m_vScrollBar.Maximum = 0; m_vScrollBar.SmallChange = 1; m_vScrollBar.LargeChange = 1089; m_vScrollBar.Value =...
1
by: RamanS | last post by:
I have a form with 2 tabs and a header. Tab1 has some text fields on it and button. At form load the 2nd tab is not visible. When i enter some text in the fields under Tab1 and then click the...
6
by: bgold12 | last post by:
I was using quirks mode (without a doctype) and set the overflow CSS property to :auto for the body tag like so: <body style="overflow:auto"> And it worked; it got rid of IE's default scroll...
2
chathura86
by: chathura86 | last post by:
I have added a scroll bar to movie clip which loads text dynamically it works fine and when i publish it as swf it is working fine also but when i publish it as html the scroll bars are not...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.