Windows Develop Bookmark and Share   
 index > Windows Forms General > Can I change the layout (height) of hscrollbar in a datagridview or flowlayoutpanel
 

Can I change the layout (height) of hscrollbar in a datagridview or flowlayoutpanel

I'm building an app that is going to use touch screen, so I would like to change the width (or height) of the scroll bars to be "pushable" with your finger.

I've tried hard and haven't found a way to do it.

Anybody has a tip ... ?

Salvador Rocha  Tuesday, July 04, 2006 4:59 AM
The size of the scrollbars are based on the current users display settings/preferences. Without changing those preferences you would have to create your own scrolling controls.
Peter Ritchie  Tuesday, July 04, 2006 6:52 PM
The size of the scrollbars are based on the current users display settings/preferences. Without changing those preferences you would have to create your own scrolling controls.
Peter Ritchie  Tuesday, July 04, 2006 6:52 PM

So, my next approach is to add a button that can raise the scroll event to the datagridview.

I've been trying and trying and the best way I think this can be done is through calling the datagridview.onscroll.

Yet I haven't been able to accomplish this. Onscroll is not accesible directly on the DGV control. Documentation says that is has to be done through a delegate.

Does anybody has a simple example on how to accomplish this?

Thanks in advance.

Salvador Rocha  Wednesday, July 05, 2006 2:22 AM

You can use google to search for other answers

Custom Search

More Threads

• DataSet and xml
• Events from ActiveX control not handled in C#. Works in VB6
• WrapMode in datagridview cell
• Why does it say I have a nullReference?
• PropertyGrid Question
• Windows Messages
• Using Graphics
• drawstring problem
• Use Controls from a different thread ?
• Help please, regarding Inserting an image into a RTB