ja soweit bin ich auch schon gekommen^^
nur mag das nicht
bis jetzt sieht mein programm so aus:
C#-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
| int i; For(i=0; i<anzahl;i++) { Label label1 = new Label(); label1.AutoSize = true; label1.Location = new System.Drawing.Point(105, 49); label1.Name = "label1"; label1.Size = new System.Drawing.Size(i+35, 13); label1.TabIndex = 0; label1.Text = "label1"; } |
wobei i nur die schleifenzählt und anzahl die anzahl der labels ist, die ich will
bei mir entsteht immer nur 1 label
Moderiert von
Christian S.: C#-Tags hinzugefügt