However this is only for one control, in this case a single rich text box.
I have tried do this for more than one control (this is what my program needs).
Note that there are seperate buttons for their corresponding rich text box.
I've tried but I get errors. Hence my post. Until now, I haven't had to work with constructor code and my programming skills are limited. I am pretty certain this is where my errors lie and I'm very keen to learn what I need to do to fix them.
Like I said, this is an add on from the above post. My code for the "add the constructor code" section of Form2.h:
The program is something I've been working on for a couple of months and I've started with next to no programming knowledge. With that said, I have managed to learn a thing or two. So my knowledge of the correct terminology etc of programming will no doubt reflect this.
Essentially I have a main form (Form1). From this form, four other forms (Form2 - 5) can be loaded. In each of these forms the user answers a series of questions (using yes or no radiobuttons) via following a flowchart of sorts.
I would like the results of these questions displayed on Form1 when the user returns to it.
Anyway, to simplify this I thought I would ask how more than one piece of information (in this case text) can be delivered back to the first form.
For example:
Form1 has two richTextBoxes (richTextBox1 and richTextBox2) and a button that displays Form2. Form2 has two buttons (button1 and button2). Each of these generate text in richTextBox1 and richTextBox2 respectively.
I hope this makes sense... I think my error lies in how I've written the above code (see first post).