473,399 Members | 2,146 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,399 software developers and data experts.

getting system metrics (such as scrollbar width)

how do you get information easily such as the scrollbar width or the border
width and such from windows?
Nov 21 '05 #1
3 10344
P/Invoke GetSystemMetrics() Win32 API. www.pinvoke.net might help you get
more info.

"Brian Henry" <no****@nospam.microsoft.com> wrote in message
news:e8**************@TK2MSFTNGP14.phx.gbl...
how do you get information easily such as the scrollbar width or the border
width and such from windows?

Nov 21 '05 #2
With Windows.Forms.SystemInformation
.VerticalScrollBarWidth
.BorderSize

etc.

"Brian Henry" <no****@nospam.microsoft.com> wrote in message
news:e8**************@TK2MSFTNGP14.phx.gbl...
how do you get information easily such as the scrollbar width or the
border width and such from windows?

Nov 21 '05 #3
thanks

"Workgroups" <no*****@domainless.com> wrote in message
news:p5********************@speakeasy.net...
With Windows.Forms.SystemInformation
.VerticalScrollBarWidth
.BorderSize

etc.

"Brian Henry" <no****@nospam.microsoft.com> wrote in message
news:e8**************@TK2MSFTNGP14.phx.gbl...
how do you get information easily such as the scrollbar width or the
border width and such from windows?


Nov 21 '05 #4

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

Similar topics

7
by: Jane Austine | last post by:
As you add more items, say text lines, in Text widget, it gets too slow and almost impractical to use on. Take idle for example. If the text gets bigger(e.g. print...
5
by: Z | last post by:
Hi, I have problem with auto-scrolling frames in IE (6.0 on Xp, but same happens with IE 5.5 on Win2k): If I set scrolling="auto" to frame, IE reserves space where vertical scrollbar normally...
2
by: darius | last post by:
Hello, I seem to be having trouble with a rather simple problem. I am opening a new window with the window.open command, and even though I set scrollbar=yes, I can't seem to get the window to...
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...
3
by: MuZZy | last post by:
Hi, Is there a way to: 1. Find out if a scrollbar is currently show on the TextBox 2. Get the width of the horizontal scrollbar I am doing a UserControl with a TextBox with a small image...
3
by: spielmann | last post by:
Hello I want to change the scrollbar size of windows, How can I do that with vb.net I have find this in VB6 but how can we convert simply this code. thx
2
by: Ray | last post by:
Hi, would someone tell me how to make scrollbar work under grid? I think I'm missing something to connect scrollbar with the grid. following is some sample code. it shows the scrollbar, but it...
3
by: nicky77 | last post by:
Hi, before you say it i know frames are bad practice - but i'm developing dynamic content on a site which has already been designed, so alas there's no option but to use them. Anyway, I just want to...
1
by: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is...
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: 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
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.