RANO1
Messages postés3Date d'inscriptionmardi 19 mai 2015StatutMembreDernière intervention29 juillet 2016
-
Modifié par BunoCS le 29/07/2016 à 09:09
vb95
Messages postés3472Date d'inscriptionsamedi 11 janvier 2014StatutContributeurDernière intervention13 avril 2024
-
29 juil. 2016 à 11:50
Bonjour,
je veux ajouter 3 label dans une nouvelle Form avec une seule click alors si je click 2 fois je vais ajouter 6 label ectj'ai utilisé le code suivant :
Dim lbl As New Windows.Forms.Label
Dim lbl2 As New Windows.Forms.Label
Dim lbl3 As New Windows.Forms.Label
lbl.BackColor = System.Drawing.Color.Transparent
lbl.Location = New System.Drawing.Point(145, My.Settings.a)
lbl.Text = (Me.TextBox1.Text)
Form3.Controls.Add(lbl)
lbl2.BackColor = System.Drawing.Color.Transparent
lbl2.Location = New System.Drawing.Point(308, My.Settings.a) 'set your location
lbl2.Text = (Me.TextBox2.Text)
Form3.Controls.Add(lbl2)
lbl3.BackColor = System.Drawing.Color.Transparent
lbl3.Location = New System.Drawing.Point(484, My.Settings.a)
lbl3.Text = (Me.TextBox3.Text)
Form3.Controls.Add(lbl3)
Et maintenant je veux une autre bouton qui permet de supprimer le dernier label ajouté et une autre tous les labels
EDIT : Ajout des balises de code (la coloration syntaxique).
Explications disponibles ICI