Disable Combobox scrollbar?

sempey

Newcomer
Joined
Mar 18, 2003
Messages
14
Location
Des Moines, IA
Hi there. I am a newb .Net developer and I am developing some custom controls for a touch-screen application. One of the controls I need is a combobox, but the scroll bar that automatically shows up on the combobox is too small for the touch-screen users, so I created my own up & down buttons to scroll the combobox. That worked just fine. The only problem I have now is getting rid of the combobox's default vertical scroll bar that automatically shows up when the list gets too long to display. Does anyone know how to get rid of this scrollbar? Or is there a way to make the scroll bar look different (bigger)? I have to design it for someone with fat fingers to use, so everything has to be pretty big.
Thanks ahead of time.:)
 
The scrollbar width should be in keeping with the settings in the system metrics, accessible from display settings. Surely it would make sense to have all scrollbars on the system very wide, if it's going to be operated via touch screen?
 
Hi divil.
I could add a vscroll control and make it wider, but the actual up and down buttons on those scroll bars are not big enough and I'm not sure if I can change that. I can make it wider, and longer, but the buttons stay very "thin" so that a user has a hard time touching it.

What I really need to do is just disable the scroll bar from showing up on a combobox, do you have any ideas on how to do this? I could possibly even just hide the scrollbar on the combo box somehow if you have a clue about that.
 
Sorry, I don't know how to completely get rid of it. I just tried changing scrollbar widths to 30 pixels on a system-wide level through display properties, and they now all have really big buttons. Just a thought.
 
Under XP it's display properties -> appearance -> advanced -> select scrollbar -> change width

Under pre-xp I believe it's still under the appearance tab.
 
Thanks!
That is a really good thing to know, and it is definately a last resort if my client will go for it.
One big problem that I see is that it will be a headache developing for with that because I'll have to keep switching back and forth, and every app that has a scrollbar on the entire computer will be bigger. I wish there was some way to do this through vb.net? That would work perfect, or else there might be a way to somehow hide or disable the scrollbars on a combobox? I'll keep looking.

Thanks again.
 
My client did not go for this, so instead I ended up creating a custom control with a vscroll covering the combobox scrollbar, and then two larger buttons covering the combobox up and down arrows (on the scrollbar). After messing around with the anchoring, I fixed it so that it would scale and everything would stay put.
Thanks anyway.
 
Back
Top