hey leute,
ich habe ne picturebox, die ich mit der tastatur nach oben und unten bwegen will. bis vorhin gings auch noch. muss wohl irgendwie noch nen fehler eingebaut haben. hier mein code:
kann mir einer sagen wo der fehler da drin is, oder liegt es daran das ich auch noch zusätzlich nen mosuemove für die gleiche pb hab? anfangs ging beides zusammen. danke schonma für eure hilfe
Edit by LaMa5: VB-Tag eingefügt
ich habe ne picturebox, die ich mit der tastatur nach oben und unten bwegen will. bis vorhin gings auch noch. muss wohl irgendwie noch nen fehler eingebaut haben. hier mein code:
VB.NET-Quellcode
- Dim dp = New Drawing.Point
- dp = PictureBox2.Location
- If e.KeyCode = Keys.Down Then
- dp.y() = dp.y + 10
- PictureBox2.Location = dp
- End If
- If e.KeyCode = Keys.Up Then
- dp.y() = dp.y - 10
- PictureBox2.Location = dp
- End If
- If e.KeyCode = Keys.S Then
- Timer1.Start()
- End If
- If e.KeyCode = Keys.Escape Then
- Close()
- End If
kann mir einer sagen wo der fehler da drin is, oder liegt es daran das ich auch noch zusätzlich nen mosuemove für die gleiche pb hab? anfangs ging beides zusammen. danke schonma für eure hilfe
Edit by LaMa5: VB-Tag eingefügt
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „LaMa5“ ()