|
|
Multiple Forms: 1. Open Borland C++ Builder. 2. Place a Button on the form. 3. Click File, New, Form. Minimize Form2 4. Double click Button1 on Form1. 5. Go to the top of the page of Unit1.cpp and add the line #include "Unit2.h" under #include "Unit1.h" 6. Type the following red code in the Button1Click function: //This is what the Button1Click function should look like: void __fastcall TForm1::Button1Click(TObject *Sender) { Form2->Show(); } //--------------------------------------------------------------------------- 7. Run the program, click the button and form2 is displayed. |