Q
qtlib
How to pass data between two forms?
I find in the Internet, but not found immplementation problem in Visual
Studio 2005 and C++ language.
Example:
I have a 2 forms: Form1 and Form2.
On a Form1 place label1 and button
First I declare: #include "Form2.h"
Next, I wrote Event button (show Form2):
Form2 ^frm2 = gcnew Form2();
frm2->Owner = this;
frm2->ShowDialog();
On a Form2 place textbox and button.
When I click button, change label1 on a Form1.
How to write this Event ?
(if I declare in source Form2: #include "Form1.h", compile with error!
)
In C# it's simple, but in C++ it's difficult.
Please help me
I find in the Internet, but not found immplementation problem in Visual
Studio 2005 and C++ language.
Example:
I have a 2 forms: Form1 and Form2.
On a Form1 place label1 and button
First I declare: #include "Form2.h"
Next, I wrote Event button (show Form2):
Form2 ^frm2 = gcnew Form2();
frm2->Owner = this;
frm2->ShowDialog();
On a Form2 place textbox and button.
When I click button, change label1 on a Form1.
How to write this Event ?
(if I declare in source Form2: #include "Form1.h", compile with error!
)
In C# it's simple, but in C++ it's difficult.
Please help me