-1
Ich habe ein Problem. Ich habe eine Schaltfläche, die eine andere Schaltfläche erstellt, aber ich möchte, dass die neue Schaltfläche in einer Groupbox ist, aber es funktioniert nicht, die Schaltfläche ersetzt die gesamte Groupbox.Schaltfläche zu einer GroupBox hinzufügen
Private Sub button1_Click(sender As Object, e As EventArgs) Handles button1.Click
Dim button As New Button
button.Location = New Drawing.Point(10, 500)
button.Size = New System.Drawing.Size(171, 23)
button.Text = TextBox1.Text
button.Controls.Add(GroupBox1)
Me.Controls.Add(button)
End Sub
Dank
Lol danke, dass es jetzt funktioniert, ich bin sooo schlecht, muss lernen :) – Touyoo
Do not we all! Froh, dass ich Helfen kann. –