I cannot get this working, I want on form keypress, if they hit w, to move the location of label1's y location -10.
VB Code:
Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress If e.KeyChar = "w" Then Label1.Location.Y = Label1.Location.Y - 10 End If End Sub
Thanks for any help!




Reply With Quote