Im using visual c++ Express edition compiler,
How can i make that after cliking Exit button , the program close?
Code:
this->button4->Cursor = System::Windows::Forms::Cursors::Hand;
this->button4->ForeColor = System::Drawing::Color::Black;
this->button4->Location = System::Drawing::Point(511, 319);
this->button4->Name = L"button4";
this->button4->Size = System::Drawing::Size(182, 39);
this->button4->TabIndex = 4;
this->button4->Text = L"Quit";
this->button4->UseVisualStyleBackColor = true;
this->button4->Click += gcnew System::EventHandler(this, &Form1::button4_Click);
Here's my Exit button code. What code should i put to make it Exit the program?