SgDotNet
Singapore Professional .NET User Group -For Cool Developers

Calling a new form in a form

rated by 0 users
This post has 1 Reply | 1 Follower

Top 150 Contributor
Posts 12
kokchern Posted: 11-13-2006 12:22 PM

Hi, i am new to vc++ and need help

Basically i created a form call form1 and i want the form1 button1 to go to form2. what code should i put in there

private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e)
    {

    // code need to add here 

    }

Top 150 Contributor
Posts 12

Form2 Database;

Database.ShowDialog(); 

 *Database is a name

*Form2 is the form name 

* place #include"Form2" in the top 

Big Smile

Page 1 of 1 (2 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems