question

TrisYang-2003 avatar image
0 Votes"
TrisYang-2003 asked Viorel-1 edited

C++ window form tital and UI not displaying

I have create a window form in visual studio 2013 community 2013 and the following code in the MyForm.h:

include "MyForm.h"


using namespace System;
using namespace System::Windows::Forms;
[STAThreadAttribute]

void main(array<String^>^ args)
{
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
Project2::Form frm;
Application::Run(%frm);
}

but when I run it, it shows:


111161-image-2021-07-02-080915.png




I've also named entry point and the subsystem in project and added some elements to the form, but it still doesn't show anything :(

c++
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Show some details about MyForm.h. If your form is called MyForm, then try:

. . .
Project2::MyForm frm;
Application::Run(%frm);
. . .

Or create a new form which is called MyForm or Form1, not Form.





0 Votes 0 ·

0 Answers