Windows Form Constructors
Hello,
I am starting a new Windows Forms application using the CLR, but I have started it as an "empty project" in Visual Studio 2008, rather than starting it automatically as a Windows Forms project.
I've added a Form to the project, and called it MyForm.
I now want to create an instance of that form, so I have written :
Code:
int main()
{
MyForm my_form = gcnew MyForm();
return 0;
}
However, I get the following error :
"error C3673: 'NewProject::MyForm' : class does not have a copy-constructor"
Please could somebody explain what this means? I don't understand the info on this error on the MSDN website...
Thanks,
Ed.