|
-
Dec 30th, 2003, 09:34 AM
#1
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|