Heey. wie kann ich den Text von dem Label auslesen?
Gruß
jan
VB.NET-Quellcode
- Dim x As String
- Private Sub PB()
- Dim p As New Panel
- Dim pb As New PictureBox
- Dim l As New Label
- p.Size = New Size(150, 150)
- p.Location = New Point(x, 0)
- l.Text = TextBox1.Text
- l.Location = New Point(70, 120)
- pb.Size = New Size(100, 100)
- pb.Location = New Point(0, 0)
- pb.Image = Image.FromFile("C:\Users\Jan-Philip\Pictures\RCT3\1.jpg")
- p.Controls.Add(l)
- p.Controls.Add(pb)
- Panel1.Controls.Add(p)
- x = x + 160
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- PB()
- End Sub]
Gruß
jan