> Is there a way to dynamically controls like the Placeholder in ASP.Net in
> a Window App?
System.Windows.Forms.Panel is a "placeholder"-control.
Adding controls is trivial:
Panel pnl = new Panel();
//set width, height, position, etc left out here
myForm.Controls.Add(pnl)
Button btn = new Button()
//set width, height, position, etc left out here
pnl.Controls.Add(btn)
Cheers
Arne Janning
Ryu - 15 Oct 2004 03:43 GMT
Thanks!
Ignacio Machin \( .NET/ C# MVP \) - 15 Oct 2004 15:57 GMT
Hi,
Just remember that you have to recreate the controls in the postback if you
want to be able to access them in the page.
Cheers,

Signature
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
> Thanks!
Arne Janning - 15 Oct 2004 16:44 GMT
Hi Ignacio!
"Ignacio Machin ( .NET/ C# MVP )" schrieb
> Just remember that you have to recreate the controls in the postback if
> you
> want to be able to access them in the page.
we were talking about Windows.Forms!
Cheers
Arne Janning