473,498 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1231
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
12699
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
5895
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
6250
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
18161
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
2198
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
1272
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
10636
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
6034
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
4591
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
3406
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
7005
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
7210
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
7381
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
5465
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,...
1
4916
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3087
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1424
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
659
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.