| | |
open new Form in project
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Mar 2008
Posts: 173
Reputation:
Solved Threads: 1
I have a project that consist of 2 Forms. I am trying to open Form2 with this code but when I compile the project I have this compile error and wonder what this meens and why it doesn´t work.
cannot convert from 'System::Windows::Forms::Form ^' to 'Form1::Form2 ^
1> No user-defined-conversion operator available, or
1> Cast from base to derived requires safe_cast or static_cast
cannot convert from 'System::Windows::Forms::Form ^' to 'Form1::Form2 ^
1> No user-defined-conversion operator available, or
1> Cast from base to derived requires safe_cast or static_cast
C++ Syntax (Toggle Plain Text)
#include "Form2.h" Form2^ newform2 = gcnew Form; newform2->ShowDialog();
Last edited by Lukezzz; Dec 17th, 2008 at 6:30 pm.
•
•
Join Date: Oct 2008
Posts: 122
Reputation:
Solved Threads: 6
Try this:
#include "Form2.h"
Form2^ newform2 = gcnew Form2;
newform2->ShowDialog();![]() |
Similar Threads
- need a sample project in VB.NET/ASP.NET (VB.NET)
- trying to use one form to open another form (Pascal and Delphi)
- Open by click (VB.NET)
- appear in other form (Visual Basic 4 / 5 / 6)
- how to open picture in vb by oading internet explorer (Visual Basic 4 / 5 / 6)
- change which form to start with (Visual Basic 4 / 5 / 6)
- navigation within multiple form in VB.NET (VB.NET)
- Populating a fields on a form base on a selected item from a droplist. (PHP)
- Error creating new ASP.Net project (ASP.NET)
Other Threads in the C++ Forum
- Previous Thread: Help with saving/loading system.
- Next Thread: Round Buttons
Views: 983 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api application array arrays assignment beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete developer display dll email encryption error file forms fstream function functions game generator getline givemetehcodez graph iamthwee ifstream image input int java lazy lib loop looping loops map math matrix memory multidimensional multiple newbie news node number numbertoword output pointer problem program programming project proxy python random read recursion recursive reference return sort sorting string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets





