#pragma once


namespace CppForm {

	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 Form1
	///
	/// WARNING: If you change the name of this class, you will need to change the
	///          'Resource File Name' property for the managed resource compiler tool
	///          associated with all .resx files this class depends on.  Otherwise,
	///          the designers will not be able to interact properly with localized
	///          resources associated with this form.
	/// </summary>
	public ref class Form1 : public System::Windows::Forms::Form
	{
	public:
		Form1(void)
		{
			InitializeComponent();
			//
			//TODO: Add the constructor code here
			//
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::Button^  btn1;
	private: System::Windows::Forms::Button^  btn2;
	private: System::Windows::Forms::Label^  label1;
	private: System::Windows::Forms::GroupBox^  groupBox1;
	private: System::Windows::Forms::RadioButton^  radioButton3;
	private: System::Windows::Forms::RadioButton^  radioButton2;
	private: System::Windows::Forms::RadioButton^  radioButton1;
	private: System::Windows::Forms::ComboBox^  combo1;
	private: System::Windows::Forms::TextBox^  textBox1;
	private: System::Windows::Forms::MenuStrip^  menuStrip1;
	private: System::Windows::Forms::ToolStripMenuItem^  fileToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  aboutMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  exitMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  actionToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  doToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  whateverToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  thisToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  thatToolStripMenuItem;
	private: System::Windows::Forms::ToolStripSeparator^  toolStripSeparator1;
	private: System::Windows::Forms::ContextMenuStrip^  contextMenuStrip1;
	private: System::Windows::Forms::ToolStripMenuItem^  oneToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  twoToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  threeToolStripMenuItem;
	private: System::Windows::Forms::ToolStripMenuItem^  moreContextMenuToolStripMenuItem;
	private: System::ComponentModel::IContainer^  components;
	protected: 

	protected: 

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>


#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
			this->components = (gcnew System::ComponentModel::Container());
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
			this->btn1 = (gcnew System::Windows::Forms::Button());
			this->btn2 = (gcnew System::Windows::Forms::Button());
			this->label1 = (gcnew System::Windows::Forms::Label());
			this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
			this->radioButton3 = (gcnew System::Windows::Forms::RadioButton());
			this->radioButton2 = (gcnew System::Windows::Forms::RadioButton());
			this->radioButton1 = (gcnew System::Windows::Forms::RadioButton());
			this->combo1 = (gcnew System::Windows::Forms::ComboBox());
			this->textBox1 = (gcnew System::Windows::Forms::TextBox());
			this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
			this->fileToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->aboutMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->exitMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->actionToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->doToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->whateverToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->thisToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->thatToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->toolStripSeparator1 = (gcnew System::Windows::Forms::ToolStripSeparator());
			this->contextMenuStrip1 = (gcnew System::Windows::Forms::ContextMenuStrip(this->components));
			this->oneToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->twoToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->threeToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->moreContextMenuToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
			this->groupBox1->SuspendLayout();
			this->menuStrip1->SuspendLayout();
			this->contextMenuStrip1->SuspendLayout();
			this->SuspendLayout();
			// 
			// btn1
			// 
			this->btn1->Location = System::Drawing::Point(272, 308);
			this->btn1->Name = L"btn1";
			this->btn1->Size = System::Drawing::Size(70, 25);
			this->btn1->TabIndex = 0;
			this->btn1->Text = L"OK";
			this->btn1->UseVisualStyleBackColor = true;
			this->btn1->Click += gcnew System::EventHandler(this, &Form1::btn1_Click);
			// 
			// btn2
			// 
			this->btn2->Location = System::Drawing::Point(352, 308);
			this->btn2->Name = L"btn2";
			this->btn2->Size = System::Drawing::Size(70, 25);
			this->btn2->TabIndex = 1;
			this->btn2->Text = L"Cancel";
			this->btn2->UseVisualStyleBackColor = true;
			this->btn2->Click += gcnew System::EventHandler(this, &Form1::btn2_Click);
			// 
			// label1
			// 
			this->label1->AutoSize = true;
			this->label1->Font = (gcnew System::Drawing::Font(L"Verdana", 16, System::Drawing::FontStyle::Italic, System::Drawing::GraphicsUnit::Point, 
				static_cast<System::Byte>(0)));
			this->label1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"label1.Image")));
			this->label1->ImageAlign = System::Drawing::ContentAlignment::MiddleLeft;
			this->label1->Location = System::Drawing::Point(19, 24);
			this->label1->Name = L"label1";
			this->label1->Size = System::Drawing::Size(269, 26);
			this->label1->TabIndex = 2;
			this->label1->Text = L"   Tutor Consulting, Inc";
			// 
			// groupBox1
			// 
			this->groupBox1->Controls->Add(this->radioButton3);
			this->groupBox1->Controls->Add(this->radioButton2);
			this->groupBox1->Controls->Add(this->radioButton1);
			this->groupBox1->Location = System::Drawing::Point(24, 64);
			this->groupBox1->Name = L"groupBox1";
			this->groupBox1->Size = System::Drawing::Size(200, 104);
			this->groupBox1->TabIndex = 3;
			this->groupBox1->TabStop = false;
			this->groupBox1->Text = L"Language";
			// 
			// radioButton3
			// 
			this->radioButton3->AutoSize = true;
			this->radioButton3->Location = System::Drawing::Point(16, 65);
			this->radioButton3->Name = L"radioButton3";
			this->radioButton3->Size = System::Drawing::Size(44, 17);
			this->radioButton3->TabIndex = 2;
			this->radioButton3->Text = L"C++";
			this->radioButton3->UseVisualStyleBackColor = true;
			this->radioButton3->Click += gcnew System::EventHandler(this, &Form1::radioButton3_Click);
			// 
			// radioButton2
			// 
			this->radioButton2->AutoSize = true;
			this->radioButton2->Location = System::Drawing::Point(16, 42);
			this->radioButton2->Name = L"radioButton2";
			this->radioButton2->Size = System::Drawing::Size(39, 17);
			this->radioButton2->TabIndex = 1;
			this->radioButton2->Text = L"C#";
			this->radioButton2->UseVisualStyleBackColor = true;
			this->radioButton2->Click += gcnew System::EventHandler(this, &Form1::radioButton3_Click);
			// 
			// radioButton1
			// 
			this->radioButton1->AutoSize = true;
			this->radioButton1->Checked = true;
			this->radioButton1->Location = System::Drawing::Point(16, 19);
			this->radioButton1->Name = L"radioButton1";
			this->radioButton1->Size = System::Drawing::Size(82, 17);
			this->radioButton1->TabIndex = 0;
			this->radioButton1->TabStop = true;
			this->radioButton1->Text = L"Visual Basic";
			this->radioButton1->UseVisualStyleBackColor = true;
			this->radioButton1->Click += gcnew System::EventHandler(this, &Form1::radioButton3_Click);
			// 
			// combo1
			// 
			this->combo1->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
			this->combo1->FormattingEnabled = true;
			this->combo1->Items->AddRange(gcnew cli::array< System::Object^  >(3) {L"Beginner", L"Intermediate", L"Advanced "});
			this->combo1->Location = System::Drawing::Point(256, 72);
			this->combo1->Name = L"combo1";
			this->combo1->Size = System::Drawing::Size(121, 21);
			this->combo1->TabIndex = 4;
			this->combo1->SelectedIndexChanged += gcnew System::EventHandler(this, &Form1::combo1_SelectedIndexChanged);
			// 
			// textBox1
			// 
			this->textBox1->Location = System::Drawing::Point(256, 115);
			this->textBox1->Multiline = true;
			this->textBox1->Name = L"textBox1";
			this->textBox1->Size = System::Drawing::Size(100, 150);
			this->textBox1->TabIndex = 5;
			// 
			// menuStrip1
			// 
			this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(2) {this->fileToolStripMenuItem, 
				this->actionToolStripMenuItem});
			this->menuStrip1->Location = System::Drawing::Point(0, 0);
			this->menuStrip1->Name = L"menuStrip1";
			this->menuStrip1->Size = System::Drawing::Size(446, 24);
			this->menuStrip1->TabIndex = 6;
			this->menuStrip1->Text = L"menuStrip1";
			// 
			// fileToolStripMenuItem
			// 
			this->fileToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(2) {this->aboutMenuItem, 
				this->exitMenuItem});
			this->fileToolStripMenuItem->Name = L"fileToolStripMenuItem";
			this->fileToolStripMenuItem->Size = System::Drawing::Size(35, 20);
			this->fileToolStripMenuItem->Text = L"&File";
			// 
			// aboutMenuItem
			// 
			this->aboutMenuItem->Name = L"aboutMenuItem";
			this->aboutMenuItem->Size = System::Drawing::Size(152, 22);
			this->aboutMenuItem->Text = L"&About...";
			this->aboutMenuItem->Click += gcnew System::EventHandler(this, &Form1::aboutMenuItem_Click);
			// 
			// exitMenuItem
			// 
			this->exitMenuItem->Name = L"exitMenuItem";
			this->exitMenuItem->Size = System::Drawing::Size(152, 22);
			this->exitMenuItem->Text = L"E&xit";
			this->exitMenuItem->Click += gcnew System::EventHandler(this, &Form1::exitMenuItem_Click);
			// 
			// actionToolStripMenuItem
			// 
			this->actionToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(3) {this->doToolStripMenuItem, 
				this->toolStripSeparator1, this->whateverToolStripMenuItem});
			this->actionToolStripMenuItem->Name = L"actionToolStripMenuItem";
			this->actionToolStripMenuItem->Size = System::Drawing::Size(49, 20);
			this->actionToolStripMenuItem->Text = L"Action";
			// 
			// doToolStripMenuItem
			// 
			this->doToolStripMenuItem->Checked = true;
			this->doToolStripMenuItem->CheckState = System::Windows::Forms::CheckState::Checked;
			this->doToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(2) {this->thisToolStripMenuItem, 
				this->thatToolStripMenuItem});
			this->doToolStripMenuItem->Name = L"doToolStripMenuItem";
			this->doToolStripMenuItem->Size = System::Drawing::Size(152, 22);
			this->doToolStripMenuItem->Text = L"Do";
			// 
			// whateverToolStripMenuItem
			// 
			this->whateverToolStripMenuItem->Enabled = false;
			this->whateverToolStripMenuItem->Name = L"whateverToolStripMenuItem";
			this->whateverToolStripMenuItem->Size = System::Drawing::Size(152, 22);
			this->whateverToolStripMenuItem->Text = L"Whatever...";
			// 
			// thisToolStripMenuItem
			// 
			this->thisToolStripMenuItem->Name = L"thisToolStripMenuItem";
			this->thisToolStripMenuItem->Size = System::Drawing::Size(152, 22);
			this->thisToolStripMenuItem->Text = L"This...";
			// 
			// thatToolStripMenuItem
			// 
			this->thatToolStripMenuItem->Name = L"thatToolStripMenuItem";
			this->thatToolStripMenuItem->Size = System::Drawing::Size(152, 22);
			this->thatToolStripMenuItem->Text = L"That...";
			// 
			// toolStripSeparator1
			// 
			this->toolStripSeparator1->Name = L"toolStripSeparator1";
			this->toolStripSeparator1->Size = System::Drawing::Size(149, 6);
			// 
			// contextMenuStrip1
			// 
			this->contextMenuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(3) {this->oneToolStripMenuItem, 
				this->twoToolStripMenuItem, this->threeToolStripMenuItem});
			this->contextMenuStrip1->Name = L"contextMenuStrip1";
			this->contextMenuStrip1->Size = System::Drawing::Size(114, 70);
			// 
			// oneToolStripMenuItem
			// 
			this->oneToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->moreContextMenuToolStripMenuItem});
			this->oneToolStripMenuItem->Name = L"oneToolStripMenuItem";
			this->oneToolStripMenuItem->Size = System::Drawing::Size(113, 22);
			this->oneToolStripMenuItem->Text = L"One";
			// 
			// twoToolStripMenuItem
			// 
			this->twoToolStripMenuItem->Name = L"twoToolStripMenuItem";
			this->twoToolStripMenuItem->Size = System::Drawing::Size(113, 22);
			this->twoToolStripMenuItem->Text = L"Two";
			// 
			// threeToolStripMenuItem
			// 
			this->threeToolStripMenuItem->Name = L"threeToolStripMenuItem";
			this->threeToolStripMenuItem->Size = System::Drawing::Size(113, 22);
			this->threeToolStripMenuItem->Text = L"Three";
			// 
			// moreContextMenuToolStripMenuItem
			// 
			this->moreContextMenuToolStripMenuItem->Name = L"moreContextMenuToolStripMenuItem";
			this->moreContextMenuToolStripMenuItem->Size = System::Drawing::Size(180, 22);
			this->moreContextMenuToolStripMenuItem->Text = L"More Context Menu";
			// 
			// Form1
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->ClientSize = System::Drawing::Size(446, 364);
			this->ContextMenuStrip = this->contextMenuStrip1;
			this->Controls->Add(this->textBox1);
			this->Controls->Add(this->combo1);
			this->Controls->Add(this->groupBox1);
			this->Controls->Add(this->btn2);
			this->Controls->Add(this->label1);
			this->Controls->Add(this->btn1);
			this->Controls->Add(this->menuStrip1);
			this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::Fixed3D;
			this->MainMenuStrip = this->menuStrip1;
			this->Name = L"Form1";
			this->Text = L"TestForm";
			this->groupBox1->ResumeLayout(false);
			this->groupBox1->PerformLayout();
			this->menuStrip1->ResumeLayout(false);
			this->menuStrip1->PerformLayout();
			this->contextMenuStrip1->ResumeLayout(false);
			this->ResumeLayout(false);
			this->PerformLayout();

		}
#pragma endregion
	private: System::Void btn1_Click(System::Object^  sender, System::EventArgs^  e) {
				 MessageBox::Show(L"You clicked the OK button! It worked!");
			 }
	private: System::Void btn2_Click(System::Object^  sender, System::EventArgs^  e) {
				 MessageBox::Show(L"You clicked the Cancel button! It also worked!");
				 // Exit the application
				 Application::Exit();
			 }
	private: System::Void combo1_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
				 if (sender == combo1)
					 {
						 String^ ps = String::Concat(L"New index is ", (Object^)(combo1->SelectedIndex).ToString());
						 MessageBox::Show(ps, L"Index Change");
					 }
			 }
private: System::Void radioButton3_Click(System::Object^  sender, System::EventArgs^  e) {
			 if (sender == radioButton1)
				 textBox1->Text = "You have selected the Visual Basic option.";
			 else if (sender == radioButton2)
				 textBox1->Text = "You have selected the C# option.";
			 else if (sender == radioButton3)
				 textBox1->Text = "You have selected the C++ option.\r\n More...";
			 }
private: System::Void aboutMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
			 MessageBox::Show(L"The About menu item", L"Menu");
		 }
private: System::Void exitMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
			 // Exit from the application
			 Application::Exit();
		 }
};
}


