title: How to Navigate between Forms using Buttons?
body: <p>I am trying to create a simple record storage application but for some idiotic reason C++ is refusing to let me navigate back to my default frmview.h Form, after adding the record.</p>
  
  <p>This is the code that I am trying to execute:</p>
  
  <pre><code>System::Windows::Forms::DialogResult Result = MessageBox::Show(this,String::Format("Record Added for user {0}, Add another?", txtstaffname),"title", MessageBoxButtons::YesNo, MessageBoxIcon::Information);
  
      if(System::Windows::Forms::DialogResult::Yes == Result)
          {
              //Do something
          }
              else
                  {
                      this-&gt;Close;
                      frmview::Show;
                  }
  </code></pre>
  
  <p>When I try to execute the debugger I get the following exception:</p>
  
  <pre><code>11  IntelliSense: a pointer-to-member is not valid for a managed class  $PROJECTDIR$\frmnew.h   444 12  Application1
  </code></pre>
  
  <p>Now the form that I am trying to go back to is the View Records Form which is also used to go the the current Add Records (frmnew.h) Form and I have included the following headers on both Forms:</p>
  
  <p>frmview.h (View Records):</p>
  
  <pre><code>#include "frmadd.h"
  #include "frmedit.h"
  </code></pre>
  
  <p>frmadd.h (Add Records):</p>
  
  <pre><code>#include "frmview.h"
  </code></pre>
  
  <p>My computer system is running Windows 8.1 and I have Visual Studio 2012 installed (.NET 4.5)</p>
  
  <p>If it were up to me I would use C# or VB.NET but as part of our assignment we have to use C++.</p>
  
  <p>Any help would be great, thanks.</p>