0

Hey,
i have a CLR proyect where i have 2 forms, i am trying to acces the form1 class via form2.

what i did is that i included the header.h of the form in form.h but it failed so i went back and icluded thesame folder both of them are there and then it compiled fine.
then i tried to acces form1.h but it doesnt locate anything in the header so then i made a function in form1.h and not even that it wont located it wont locate.

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by jonsca
0

Please post your code. Don't forget to push the code button before you paste each file.

0

Modify the constructor of form2 to take a form1 object. Assign that to a private form object in your form2. Operate on it like you would any other object.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.