changing scrollbars in vb.net

  • Thread starter Thread starter sympatico
  • Start date Start date
S

sympatico

hi,

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

thanks in advance
 
sympatico said:
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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top