About Mdi Child n Parent Forms
situation.
i loaded a child form into a parent form
This is in the Child Form
Private Sub tmrCupid_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrCupid.Tick
If kRight = True Then
picCupid.Left += 8
End If
If kLeft = True Then
picCupid.Left += 8
End If
End Sub
Private Sub frmStageOne_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If e.KeyCode = Keys.Right Then
kRight = True
End If
If e.KeyCode = Keys.Left Then
kLeft = True
End If
End Sub
Private Sub frmStageOne_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp
If e.KeyCode = Keys.Right Then
kRight = False
End If
If e.KeyCode = Keys.Left Then
kLeft = False
End If
End Sub
Problem:
my picCupid in the child form doesnt seem to be able to move. can anyone help