Polaris,
You can call the GetScrollBarInfo API function through the P/Invoke
layer, getting the SCROLLBARINFO structure for the vertical scrollbar (you
have to pass in the handle of the rich text box. The rcScrollBar field will
have a rectangle which has the coordinates of the scrollbar. From this, you
can determine the size.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Polaris" <et*******@hotmail.com> wrote in message
news:OG**************@TK2MSFTNGP02.phx.gbl...
Hi:
I'm using a RichTextBox with C#. Just wondering how to get the width of
the Vertical Scroll Bar?
Thanks
Polaris