- Aug 15, 2000
- 52,763
- 1
- 0
I'm simply trying to move a label named "target" across from left to right, like an animation. I've been given a missile launcher program to hash out for my VB class, and the damn bastid of a teacher is making the whole class a damn guessing game. I've been able to deal with it for the most part up until now. WTF??
Here's what I've been able to stumble up with:
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 97 Then
Launcher.Left = Launcher.Left - 1
End If
If KeyAscii = 100 Then
Launcher.Left = Launcher.Left + 1
End If
End Sub
--------------------------------------
Private Sub Form_Load()
Target.Left = 0
Do While Target.Left = 5880
Target.Left = Target.Left + 1
Loop
End Sub
Can someone please tell me what I'm doing wrong?
Here's what I've been able to stumble up with:
Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyAscii = 97 Then
Launcher.Left = Launcher.Left - 1
End If
If KeyAscii = 100 Then
Launcher.Left = Launcher.Left + 1
End If
End Sub
--------------------------------------
Private Sub Form_Load()
Target.Left = 0
Do While Target.Left = 5880
Target.Left = Target.Left + 1
Loop
End Sub
Can someone please tell me what I'm doing wrong?
