using .net framework and c++,how to make 2 forms Show() each other? -


i'm trying use visual c++ .net make window application.

and met problem in making them show() each other.

in 1 form(form1) wrote:

private: system::void button2_click(system::object^  sender, system::eventargs^  e)      {     this->hide();     registerscreen^ form = gcnew registerscreen;     form->show();     }       

in form(registerscreen) wrote:

private: system::void button1_click(system::object^  sender, system::eventargs^  e)      {     form1^ form = gcnew form1;     form->show();     this->hide();     }   

then found can't make work completely. tried forward declaration,but didn't work; tried include whole file, , find cross-reference; never work.

my program intended open each other on bottom click (and hide themselves). should do? thank you!

p.s. way, intellisense broken in vs2010 in project. why?


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -