Pythagoras
Dec 27th, 2005, 09:11 PM
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:
Panel1 pnl = (Panel)new Panel1();
pnl.Left = 25;
pnl.Top = 200;
this.Controls.Add(pnl);
What is going on here?
I recieve this error message:
'Panel1' is a 'field' but is used like a 'type'
Here is my code:
Panel1 pnl = (Panel)new Panel1();
pnl.Left = 25;
pnl.Top = 200;
this.Controls.Add(pnl);
What is going on here?