We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

VScrollBar width

How can I get the width of a GDBG''s Vertical Scroll Bar (if one is visible)? I tried checking grid.VScrollBar.InnerScrollBar. It seems to be Nothing (in VB) if there''s no visible scroll bar. But when there is a visible InnerScrollBar, dbgAddOns.VScrollBar.InnerScrollBar.Width is always 0. ----- Lee Perkins

1 Reply

AD Administrator Syncfusion Team June 16, 2004 05:53 PM UTC

If you just want the width, you can use SystemInformation.VerticalScrollbarWidth. If you want to try to set the width to something other than the system default, then you can use the technique in this sample. Grid\Samples\Quick Start\ScrollBars. It hides teh default scrollbars, and lets you use standard Windows Forms ScrollBars to manage the scrolling in a grid.

Live Chat Icon For mobile
Up arrow icon