Hallo,
So weit so gut, der Kran läuft gut, aber ist leider noch verbuggt.
Panel1=Schwarz
Panel2=Gelb
Panel3=Grau
Panel4=Orange
Panel5=Blau
Die datei ist angehangen und hier ist der Code:
Alles anzeigen
So weit so gut, der Kran läuft gut, aber ist leider noch verbuggt.
Panel1=Schwarz
Panel2=Gelb
Panel3=Grau
Panel4=Orange
Panel5=Blau
Die datei ist angehangen und hier ist der Code:
Quellcode
- Public Class Form1
- Private Sub Button7_Click(sender As Object, e As EventArgs) Handles Button7.Click
- Panel1.Location = New Point(
- Panel1.Location.X + 10,
- Panel1.Location.Y)
- Panel2.Location = New Point(
- Panel2.Location.X + 10,
- Panel2.Location.Y)
- Panel3.Location = New Point(
- Panel3.Location.X + 10,
- Panel3.Location.Y)
- Panel4.Location = New Point(
- Panel4.Location.X + 10,
- Panel4.Location.Y)
- Panel5.Location = New Point(
- Panel5.Location.X + 10,
- Panel5.Location.Y)
- End Sub
- Private Sub Button8_Click(sender As Object, e As EventArgs) Handles Button8.Click
- Panel1.Location = New Point(
- Panel1.Location.X - 10,
- Panel1.Location.Y)
- Panel2.Location = New Point(
- Panel2.Location.X - 10,
- Panel2.Location.Y)
- Panel3.Location = New Point(
- Panel3.Location.X - 10,
- Panel3.Location.Y)
- Panel4.Location = New Point(
- Panel4.Location.X - 10,
- Panel4.Location.Y)
- Panel5.Location = New Point(
- Panel5.Location.X - 10,
- Panel5.Location.Y)
- End Sub
- Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
- Panel2.Height = Panel2.Height + 10
- Panel2.Location = New Point(
- Panel2.Location.X,
- Panel2.Location.Y - 10)
- Panel4.Location = New Point(
- Panel4.Location.X,
- Panel4.Location.Y - 10)
- Panel5.Location = New Point(
- Panel5.Location.X,
- Panel5.Location.Y - 10)
- End Sub
- Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
- Panel2.Height = Panel2.Height - 10
- Panel2.Location = New Point(
- Panel2.Location.X,
- Panel2.Location.Y + 10)
- Panel4.Location = New Point(
- Panel4.Location.X,
- Panel4.Location.Y + 10)
- Panel5.Location = New Point(
- Panel5.Location.X,
- Panel5.Location.Y + 10)
- End Sub
- Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
- Panel5.Height = Panel5.Height + 10
- End Sub
- Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
- Panel5.Height = Panel5.Height - 10
- End Sub
- Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
- Panel4.Width = Panel4.Width + 10
- Panel4.Location = New Point(
- Panel4.Location.X - 10,
- Panel4.Location.Y)
- Panel5.Location = New Point(
- Panel5.Location.X - 10,
- Panel5.Location.Y)
- End Sub
- Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
- Panel4.Width = Panel4.Width - 10
- Panel4.Location = New Point(
- Panel4.Location.X + 10,
- Panel4.Location.Y)
- Panel5.Location = New Point(
- Panel5.Location.X + 10,
- Panel5.Location.Y)
- End Sub
- End Class
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Rebooto ()