Hey guys,
okay, some good things went well when i compiled the program however,
the button that is suppost to put the function CreateNewPhase(this); seem not to work - like nothing happens. I don't know if I'm doing it right or not.
Also, another thing is that I can't seem to add anumber like "Panel" & step;
It says that the & operator can't be added to a string or int.
So here's the code sample: Now the point of this whole thing is to create new panels when the user presses the next button. Also the pannel that is created is inside a split container. So, i don't know if that has to do with anything.
Here's the code section within a empty code file.
CODE
private static 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);
}
Also, here's the snap shot so you guys have a better idea.
Thanks for help!
Sincerely,
Paul
P.S. Should I go back to VB.NET or just stick with C#?