0% found this document useful (0 votes)
18 views1 page

VB - Prog - Timerand HScroll Control

Practical 1 visual basic programming

Uploaded by

yashlanjewar370
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views1 page

VB - Prog - Timerand HScroll Control

Practical 1 visual basic programming

Uploaded by

yashlanjewar370
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

‘Program in VB for speed control program using timer and Hscroll bar control.

Properties:
Coding:
Private Sub cmdexit_Click()
Unload Me
End Sub

Private Sub Timer1_Timer()


With Image1
newleft = .Left + HScroll1.Value
If newleft + .Width <= Me.ScaleWidth Then
Image1.Left = newleft
Else
Image1.Left = 0
End If
End With
End Sub
OUTPUT:

You might also like