How to Creating Multi form in C++ Visual Studio with Image

keywords : Multiform, Multiform C++, Multiform Visual Studio, Multiform Visual Studio C++, Creating Multiform C++, Multiform C++ Programs, Programmer, Coding, shift Form1 to Form2, shift Form2 to Form1, multi form visual studio, visual studio multiform, visual studio multi form windows application




Hello Readers, this time i will share how to make multiform in C++ Visual Studio. Be sure that you
already have Visual Studio. Visual Studio that I use is Visual Studio 2012.
Ok if everything is ready we just start.

1. First Make the Project Like in the Picture with The name " Test Project "



2. Then create 2 new Item with the names Form1 and Form2 like the Picture

Form1
Form2



3. After That open the Tool Box and Enter Button In Form1 and Rename the button to Exit




4. Then double click the button and enter code like this




5. Then swipe to the very top of Form1.h and enter #include "Form2.h"




6. If you have made 2 buttons on Form2 and rename the Button1 to "Yes" and Button2 to "No".
    Then add the label with the word "Are you sure you want to Exit?".




7.Then Double Click the Button "Yes" snd enter the following kode




8. After that go back to the design then double click the Button "No" and enter the following code




9. If you have swiped to the head of the form and follow it like the picture.

Before

After

10. Then enter this code in Form1.cpp



11. If we just run the program










Just like that a tutorial from me about multiform in C++, i hope is very useful and
thanks for wanting to read this article
Good Luck for Eveyone

Subscribe Us  : https:://youtube.com/c/IndraMyn
Follow IG Us : @indra_myn07

1 Response to "How to Creating Multi form in C++ Visual Studio with Image"

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel