Hi.
I used this code, to create a label while the program was running when I pressed the button
int i=0;
private void NakupRyby_Click(object sender, EventArgs e)
{
Ryby[i] = new System.Windows.Forms.Label();
Ryby[i].Text = "<°])))>(";
Ryby[i].Size = new System.Drawing.Size(38, 13);
Ryby[i].Location = new System.Drawing.Point((10 * i) + 100, (10 * i) + 100);
Controls.AddRange(new System.Windows.Forms.Control[] { Ryby[i] });
i++;
}
Then I had to move this code to class, which should do the same, but i can't really add the label to form's Controls from the class. I need to figure out, how to put the label into the form controls from the class while program running