Groups | Blog | Home
all groups > dotnet windows forms controls > july 2005 >

dotnet windows forms controls : Scrolbars in ListBox, ComboBox, ListView...


ALexey Zalivin
7/29/2005 12:00:00 AM
Herfried,
thank you for quick reply, but I'm looking for for changing under my
program, because touchscreen machines will be used by other applications
(ie, outlook e.t.c), and I can't change style of all components in OS.

Any other way?

Alexey.


[quoted text, click to view]

ALexey Zalivin
7/29/2005 10:28:31 PM
Hi,

Anobody can help me to increase scrollbars in ListBox (wider for both
scrollbars). I try to design applications specialy for touchscreen, but
can't find any solutions in documentation.

Thank you,
Alexey.

Herfried K. Wagner [MVP]
7/29/2005 11:41:32 PM
"ALexey Zalivin" <zalivine@mail.ru> schrieb:
[quoted text, click to view]

You can change the scrollbar width for the whole system in "Display
properties" -> "Display" -> "Advanced" -> click the scrollbar and set the
width.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Cathal Connolly [VB MVP]
8/1/2005 12:00:00 AM
I think you're looking for AutoScrollMinSize
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html
/frlrfsystemwindowsformsscrollablecontrolclassautoscrollminsizetopic.asp).
It controls the size of auto scroll bars on controls that inherit from
ScrollableControl. It gets set at the container level i.e. form or panel

[quoted text, click to view]

SharpCoderMP
8/2/2005 11:08:04 PM
AutoScrollMinSize is property that tells your control what is the "real"
area of your control. if you set this to size that is greater (in any of
the dimensions) than size of your controll, then scroll bars will be
displayed and control will allow scrolling withing specified size.

as to the width of scrollbars - i have no idea. i've been looking for
the way of getting its width to know how to draw contents of my
controls, but couldn't find it. so i did screenshot and counted pixel by
pixel width of scrollbars and hardcoded this value. i know it's not a
good idea but i had no time for digging for the "real" sollution.

[quoted text, click to view]
AddThis Social Bookmark Button