Walk Lightly on this PLANET and yet leave such a FOOTPRINT that cannot be erased for thousands of Years..!!!
Visit Codstech for Cyber Security related Posts !

Visitors

Monday, May 23, 2011

VB-2 : Speed Program



When we move the scroll bar the km/hour changes from 1 to 100, and “STOP” will close the operation.
A)   
Property :
Textbox                    :   NAME – text1   , Text-(should kept blank)
Command Button 1  :  NAME -  Command1, CAPTION-Stop
Horizontal scroll bar :  min – 0, max-100

B)   Attaching Code to the Object :
Private Sub Command1_Click()
End
End Sub

Private Sub HScroll1_Change()
Text1.Text = Str(HScroll1.Value) + "km/hour"
End Sub
   Private Sub Text1_Change()
End Sub




=========================================================================
Back to Home   &  VB 

1 comment:

priyangu said...

NIce Program Thanxx for sharing