I understand this may be very simply for moSt, but I'm trying to create a window form that has a button that when I click it. It populates Hello World in the textbox.
All the YouTube video said just double click the button, and enter name of textbox->text="Hello World";
When I run it,there's no errors but the form does not pop up with the interactive button. Where am I going wrong
#pragma once
namespace ConsoleApplication1 {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Summary for MyForm1
/// </summary>
public ref class MyForm1 : public System::Windows::Forms::Form
{
public:
MyForm1(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~MyForm1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ ButtonClick;
private: System::Windows::Forms::TextBox^ TextBoxMessage;
protected: