Hi guys,

I would like you to help me. I have figure out that I will get the errors of 'Form2' : undeclared identifier as if I included the "#include Form1.h" on the top of the Form2 class while I have the "#include Form2.h" on the top of the Form1 header.

This is how I found the problem to get it solve, if I remove the "#include Form2.h" on the top of the Form1 header, the problem would solve but I cannot open the form2 dialog.

What I am trying to do is to open the form2 dialog and check on the Form1 menu items that if any of the menu items checked is set to true or false then do something.

Please can you help me to get this solution as I find it very difficult to deals with?

Thanks,
Mark

The problem is that the toolstrip objects in Form1 are declared private. Form2 will be unable to view them without a public function in Form1 that will expose their contents or check status. Write a public method in Form1 that returns the check status of a menu item.

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.