Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Passing Data Between Winforms

mjaynottsmjaynotts Member Posts: 2

Hi,

Im struggling to pass data from a child form to the parent form.

On the child form i try to create an object of the parent form:

Form1^ mainForm = gcnew Form1();

However i get an error saying that Form1 is an undeclared Identifier!! even though it appears in the auto list...

I have managed to comunicate with the child form from the parent form in a similar manner but i also added the code:

#include "child.h"

if i add similar code to the child form (#include "parent.h"), it produces errors saying the child form object on the parent form is now also an undeclared identifier!!

Im quite new to vc++ and im really struggling with this...

Thanks,


























Sign In or Register to comment.