KEMBAR78
How To Create A Visual Interface | PDF
0% found this document useful (0 votes)
50 views17 pages

How To Create A Visual Interface

This document provides steps for creating a basic visual interface in C++, including adding a windows form, editing code to include the form header and namespace declarations, adding a label and button, and a text box and button to capture user input. The steps include creating a new project, adding a form, editing the code file to initialize the form and application, and making additions to the form like labels, buttons, and text boxes.

Uploaded by

Ravi Gajenthran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views17 pages

How To Create A Visual Interface

This document provides steps for creating a basic visual interface in C++, including adding a windows form, editing code to include the form header and namespace declarations, adding a label and button, and a text box and button to capture user input. The steps include creating a new project, adding a form, editing the code file to initialize the form and application, and making additions to the form like labels, buttons, and text boxes.

Uploaded by

Ravi Gajenthran
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

HOW TO CREATE A VISUAL

INTERFACE
IN
C++

Mr. Priyanga Siriwardana

Start with new Project

Create a new Project in


CLR

Adding a Form

Adding a windows form

UI Background

Edit the MyForm.cpp


file

#include "MyForm.h"
using namespace System;
using namespace System::Windows::Forms;

[STAThread]
void Main(array<String^>^ args)
{

Application::EnableVisualStyles();

Application::SetCompatibleTextRenderingDefault(false);

RandomNumberGenerator::MyFormform;
Application::Run(%form);

Edit the Code

Change the sub system

Run the program

This will be output

Put a label and button

Text box and Button

You might also like