scroll bar visual basic properties
<p>I work on project with scroll bars. Each scroll bar holds a max value of 255 (the color codes) 1 scroll bar is red, second green third blue. When I change the large value property from 1 to 5 (it is required in the project) and slide the scroll bar all the way to the end the final value is 251 instead of 255 and it must be 255. Small change is set to 1. I am currently learning vb, does anyone know how to solve this issue?<br>
 Here is the code I have and we are not allowed to use variables yet
The explicit option must be on as well as the strict. </p>

<p>Option Explicit On 
Option Strict On</p>

<p>Public Class frmMixer</p>

<pre><code>Private Sub cmdExit_Click(sender As Object, e As EventArgs) Handles cmdExit.Click
    Application.Exit()

End Sub

Private Sub hsbRed_ValueChanged(sender As Object, e As EventArgs) Handles hsbRed.ValueChanged
    lblRed.Text = Convert.ToString(hsbRed.Value)
    picColor.BackColor = Color.FromArgb(hsbRed.Value, hsbGreen.Value, hsbBlue.Value)
End Sub
Private Sub hsbGreen_ValueChanged(sender As Object, e As EventArgs) Handles hsbGreen.ValueChanged
    lblGreen.Text = Convert.ToString(hsbGreen.Value)
    picColor.BackColor = Color.FromArgb(hsbGreen.Value, hsbGreen.Value, hsbBlue.Value)
End Sub

Private Sub hsbBlue_ValueChanged(sender As Object, e As EventArgs) Handles hsbBlue.ValueChanged
    lblBlue.Text = Convert.ToString(hsbBlue.Value)
    picColor.BackColor = Color.FromArgb(hsbRed.Value, hsbGreen.Value, hsbBlue.Value)
End Sub
</code></pre>

<p>End Class</p>