Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void MakeLabels()
- {
- word = GetRandomWord();
- char[] chars = word.ToCharArray();
- int between = 330 / chars.Length;
- for (int i = 0; i < chars.Length; i++)
- {
- labels.Add(new Label());
- labels[i].Location = new Point((i * between) + 10, 80);
- labels[i].Text = "_";
- labels[i].Parent = groupBox1;
- labels[i].BringToFront();
- labels[i].CreateControl();
- }
- }
- for (int i = 0; i < chars.Length; i++)
- {
- labels.Add(new Label());
- labels[i].Location = new Point((i * between) + 10, 80);
- if(i!=0)labels[i].Text = "_";
- labels[i].Parent = groupBox1;
- labels[i].BringToFront();
- labels[i].CreateControl();
- }
Add Comment
Please, Sign In to add comment