What I'm trying to do is clone a panel with some controls on it??
I recieve this error message:
'Panel1' is a 'field' but is used like a 'type'
Here is my code:
VB Code:
Panel1 pnl = (Panel)new Panel1(); pnl.Left = 25; pnl.Top = 200; this.Controls.Add(pnl);
What is going on here?




Reply With Quote