Length Converter


The Length Converter sample program demonstrates the use of scroll bar in your vb application. The change in value of the scroll bar reflects the value in centimeter which is the  converted value of inch.


             
                                                   >> DOWNLOAD


Screenshot:
Use of vertical scroll bar in vb



Code:
Private Sub VScroll1_Change()
    lblInch.Caption = VScroll1.Value
    lblCentimetre.Caption = VScroll1.Value * 2.54
End Sub
________________________________________________
Private Sub VScroll1_Scroll()
    lblInch.Caption = VScroll1.Value
    lblCentimetre.Caption = VScroll1.Value * 2.54
End Sub