By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,257 Members | 1,563 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,257 IT Pros & Developers. It's quick & easy.

changing scrollbars in vb.net

P: n/a
hi,

does anyone know how to change the style of the scrollbars in a vb.net
windows application??

thanks in advance
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"sympatico" <fe******@a1vbcode.com> schrieb:
does anyone know how to change the style of the scrollbars in a vb.net
windows application??


That's not supported. You can choose another theme to make the scrollbars
appear in a different style.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #2

P: n/a

I don't know what you mean by style. But here is a piece of code for setting
and changing the properties of the scrollbar. Moreover, you can have another
control (say a label control) that moves or reacts to the relative position
of the scrollbar.

Private Sub ScrollBar_Reaction(......)

ScrollBar1.Size = New Size(25, Me.ClientSize.Height)

ScrollBar1.Location = New Point(Me.ClientSize.Width - 25, 0)

Label1.Location=New Point(0, (Me.ClientSize.Height -
Label1.Height)*ScrollBar1.Value / 100)

End Sub

"sympatico" <fe******@a1vbcode.com> wrote in message
news:Qn*********************@news20.bellglobal.com ...
hi,

does anyone know how to change the style of the scrollbars in a vb.net
windows application??

thanks in advance

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.