Results 1 to 5 of 5

Thread: Control Arrays (Help me Pirate) [Resolved]

Threaded View

  1. #1

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166

    Control Arrays (Help me Pirate) [Resolved]

    Ok, I have this part down about creating controls and control arrays at run-time.

    Code:
    Button newbutton=new Button();
    newbutton.Location = new Point(200,100);
    newbutton.Size = new Size(100,150);
    this.Controls.Add(newbutton);
    My question is, how do I make new buttons (instances i guess) of a button I already have on my Window. For example, I like the size, the font, the color, I just want 8 more at run-time at different locations. How do I do that. I understand what you showed me last time with the labels, but I want to design the control on the window and then copy it at run-time. Hope this is detailed enough.
    Last edited by jordan23; Dec 30th, 2003 at 02:21 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width