Alright, so far so good the only thing is that it's having trouble with the step part.
It's saying that
QUOTE
Error 1 An object reference is required for the non-static field, method, or property 'main_module.step' C:\Users\Evolution\Documents\Visual Studio 2008\Projects\Prankzter1\Prankzter1\CodeFile1.cs 11 9 Prankzter1
I have it like this:
csharp
public class main_module
{
int step = 0;
public static void CreateNewPhase(System.Windows.Forms.Form frm)
{
step = +1;
System.Windows.Forms.Panel NewPanel = new System.Windows.Forms.Panel();
NewPanel.Name = "Panel" & step;
frm.Controls.Add(NewPanel);
}
public void GoNextStep(int count)
{
}
}
I looked up MSDN help and but it's a shitty help reference. I tried saying public int step;
then inside the funciton i put it as step = 0;
but that didn't do good and plus i don't think that would work because everytime it would runt he code it was just reset back to 0 and wouldn't do it's job like i wanted it to.
Thanks guys - I'm more familiar with VB.NET and just trying to get C# under my belt.
Peace and thanks fro the help!
-Paul