473,395 Members | 1,460 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,395 software developers and data experts.

Width of scrollbar in control.

How do I obtain the width of a scrollbar on a Windows Forms control (eg. a
ListView control)?
Nov 20 '05 #1
2 1312
Keith,

SystemInformation.VerticalScrollBarWidth or
SystemInformation.HorizontalScrollbarHeight (depending).
All scrollbars have the same size by default.

By the way, a quick search at groups.google.com would have given you the
answer. :^)
--
Chris Douglas
Software Engineer
SRS Technologies, Inc.
christopher "dot" douglas "at" srs "dot" com

"Keith Rebello" <kr**@gecinc.com> wrote in message
news:di******************@dfw-read.news.verio.net...
How do I obtain the width of a scrollbar on a Windows Forms control (eg. a
ListView control)?

Nov 20 '05 #2
Hi,

Trace.WriteLine(SystemInformation.VerticalScrollBa rWidth)
Trace.WriteLine(SystemInformation.HorizontalScroll BarHeight)

Ken
------------------

"Keith Rebello" <kr**@gecinc.com> wrote in message
news:di******************@dfw-read.news.verio.net:
How do I obtain the width of a scrollbar on a Windows Forms control (eg. a

ListView control)?


--
Outgoing mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.230 / Virus Database: 263.3.0 - Release Date: 6/12/2004
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Geert-Pieter Hof | last post by:
Hello, I use a ListView control (report view) to show the user a summary of error messages. The width of the column that holds the error messages is such that no horizontal scrollbar is needed....
2
by: Richard van Wegen | last post by:
Dear All I want to use the horizontal scrollbar control, but I can't figure out how to change the width of the slider, i.e. the bit that you drag left & right. With other controls (eg Textbox),...
14
by: delerious | last post by:
I need to determine an element's width and height in pixels (not including padding, border, and margin) in Javascript. The element will not have width or height styles specified. In Mozilla, I...
6
by: Timothy Madden | last post by:
Hello Please take a look at this table: http://web.ss.pub.ro/~bat/HelloWorld.php Now the table has the width property set to 100%, which should mean the width available to the browser. Does...
8
by: Christopher Benson-Manica | last post by:
I have a table in a frame with a scrollbar. I want the table to be 100% of the width of the frame excluding the width of the scrollbar. Opera and Netscape leave space for the scrollbar, but IE6...
9
by: web1110 | last post by:
Hi y'all, I have resized the columns in a DataGrid and I want to set the width of the DataGrid to fit the columns. Just summing the column widths is too short due to the grid and gray row...
1
by: Rachel Suddeth | last post by:
I would like to load a file to the .Rtf property of a RichTextBox, and then set the containing form (if possible, depending on screen resolution) to the smallest width that will not cause the...
2
by: Keith Rebello | last post by:
How do I obtain the width of a scrollbar on a Windows Forms control (eg. a ListView control)?
0
by: Bob | last post by:
Hi Could anyone tell me if it is posible to change the width of the vertical scrollbar on a panel control who's autoscroll property is set to true. I'm producing a touch screen application and the...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...

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.