KEMBAR78
How To Create A Visual Interface | PDF | Computers
0% found this document useful (0 votes)
54 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 are to create a new project, add a windows form, edit the code file to initialize the form and application, then add and arrange basic interface elements like labels, text boxes, and buttons.

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)
54 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 are to create a new project, add a windows form, edit the code file to initialize the form and application, then add and arrange basic interface elements like labels, text boxes, and buttons.

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