About C++ Idk, my knowledge is low and i have only work in console mode.
i can say you about C#, its about same in C++... just try...
well lets say you have 2 forms, Form1 and Form2
Form1 is you main form, and you wanna call Form2 using a buton or whatever.
code is:
Code:
FormName 1name = new FormName();
1name.show();
example
Code:
Form2 opf2 = new Form2();
opf2.show(); // this open you new window, but you still have Form1 too..
if you want like dialog use.
Code:
Form2 opf2 = new Form2();
opf2.showDialog(); // this open you new window, and you dont have acces in Form1, you must close it.
Example , lets say you wanna make simple login, Main Form + Login Form...
And you wanna to get access in main form only if put right password.
well you will put on Main Form, on event " ON Laod "
Code:
Login lf = new Login();
lf.showDialog();
as i say using that you must enter right pass to have acces main form...
Soz for myh bad english...
Bookmarks