Hello,

I have two forms named are Form1 and Form2 (Form1.h / Form2.h)
There are a textbox and a button on Form1 and Form2.

When I click the button on Form1, it must show Form2 and
when I click the button on Form2, it must fill the textbox on Form1 with text from textbox on Form2

how can I do it, please help...
Thank you very much in advance...

* when I define #include "Form2.h" in form1.h AND #include "Form1.h" in
form2.h, it gets me an error "error C2065: undeclared identifier.

Source code?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.