I am assuming this is a win form app. To add a control dynamically, just
instantiate the control type, ie MyControl ctlr = new MyControl, set the
properties you need, ie
ctrl.Location = new Point(x,y); etc. then add the control to the form's
controls collection, frm.controls.Add(ctrl); (or this.control if executing
within the form)
does this help?
Tom Wisnowski
MCP MCAD
"**** KiteOregon ****" wrote:
I have created a simple user control. On the parent form i would like to
display n instances of my usercontrol based on how many the user wants. How
would you do this in vb.net or c#.net. If this were an asp.net application i
think i could use something such as the repeater control.
Thanks.
--
Just another lost developer.....