Hi,
Ich versuche, mit diesem Code, ein Koordinatensystem in eine Picturebox zu zeichnen:
Das Problem ist das nichts passiert.
Könnt ihr mit bitte auf die Sprünge helfen?
MfG
optz
Ich versuche, mit diesem Code, ein Koordinatensystem in eine Picturebox zu zeichnen:
VB.NET-Quellcode
- Dim g As Graphics = PictureBox1.CreateGraphics
- Dim pointy, pointy2, pointx, pointx2 As Point
- pointy.X = CInt(PictureBox1.Width / 2)
- pointy.Y = 0
- pointy2.X = CInt(PictureBox1.Width / 2)
- pointy2.Y = PictureBox1.Height
- pointx.X = 0
- pointx.Y = CInt(PictureBox1.Height / 2)
- pointx2.X = PictureBox1.Width
- pointx2.Y = CInt(PictureBox1.Height / 2)
- g.DrawLine(Pens.Black, pointy, pointy2)
- g.DrawLine(Pens.Black, pointx, pointx2)
Das Problem ist das nichts passiert.
Könnt ihr mit bitte auf die Sprünge helfen?
MfG
optz