How to draw scroll button on a scroll bar control on windows form in

You can draw a scroll button on a scroll bar control in the specified state, on the specified graphics surface, and within the specified bound with the help of ControlPaint.DrawScrollButton Method using

You can use ControlPaint.DrawScrollButton Method like as :

Public Shared Sub DrawScrollButton ( _
graphics As Graphics, _
rectangle As Rectangle, _
button As ScrollButton, _
state As ButtonState _


Following example draw a scroll button on windows form:

Private Sub Form1_Paint(ByVal sender As System.Object, _
                            ByVal e As System.Windows.Forms.PaintEventArgs) _
                            Handles MyBase.Paint
        ControlPaint.DrawScrollButton(e.Graphics, _
                                      New Rectangle(10, 180, 20, 20), ScrollButton.Left, ButtonState.Normal)
        ControlPaint.DrawScrollButton(e.Graphics, _
                                      New Rectangle(50, 180, 20, 20), ScrollButton.Max, ButtonState.Pushed)
End Sub