I am trying to create a multi-form application using VC++ express 2008.
I have included the header file of the 2nd form in the 1st form header.
and I put this code in a function in the 1st form :

Show (gcnew form2 () );

but nothing happend when I ran it.
sometimes, I recieve a message tells me that another thread should be used because it is wrong to use a message loop on the same thread;
THQ U 4 Ur help.

I'm not sure whatever global function Show() is will do the job. Instantiate a form2 object and call it's method:

form2^ fm2 = gcnew fm2();
fm2->Show();

should work. If you want fm2 to persist outside of the current method, declare it as a private member of form1

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.