PictureBox verschieben

Rene42

Erfahrenes Mitglied
Hi

Ich möchte eine PictureBox verschieben.

Ich benutze Vb 2005. Versuchtz habe ich bereits folgenden Code:

Code:
a=me.picturebox1.location.x
a=a+10
me.picturebox1.location.x=a

Dies geht wohl nicht da ...location.x kein Wert zugewiesen werden kann.

?
 
Hi,

Aber du kannst die Location neu setzen.
C#:
pictureBox.Location = new Point(pictureBox.Location.X +  10, pictureBox.Location.Y);
 
Zurück