All pastes #362780 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-02-19 01:32 UTC
rendered paste body
#pragma once
#include <ctime>
#include <cstdlib>


namespace unclickable {

	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)
		{
			/* Constructor ;) */
			InitializeComponent();
			srand((unsigned)time(0));
		}
		//Random number..., if 0, nada :P
		static int started = 0;
		static int i_rdn = 0;
	private: System::Windows::Forms::TabPage^  tabPage3;
	public: 
	private: System::Windows::Forms::Label^  about;
	private: System::Windows::Forms::PictureBox^  pictureBox1;
			 static int tries = 0;

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~Form1()
		{
			if (components)
			{
				delete components;
			}
		}
	private: System::Windows::Forms::Label^  label2;
	private: System::Windows::Forms::Label^  label1;
	private: System::Windows::Forms::Button^  button1;
	private: System::Windows::Forms::Button^  button2;
	private: System::Windows::Forms::TabControl^  tab1;


	private: System::Windows::Forms::TabPage^  tabPage1;
	private: System::Windows::Forms::TabPage^  tabPage2;
	private: System::Windows::Forms::Button^  button17;
	private: System::Windows::Forms::Button^  button16;
	private: System::Windows::Forms::Button^  generate;

	private: System::Windows::Forms::Button^  button14;
	private: System::Windows::Forms::Button^  button13;
	private: System::Windows::Forms::Button^  button12;
	private: System::Windows::Forms::Button^  button11;
	private: System::Windows::Forms::Button^  button10;
	private: System::Windows::Forms::Button^  button9;
	private: System::Windows::Forms::Button^  button8;
	private: System::Windows::Forms::Button^  button7;
	private: System::Windows::Forms::Button^  button6;
	private: System::Windows::Forms::Button^  button5;
	private: System::Windows::Forms::Button^  button4;
	private: System::Windows::Forms::Button^  button3;
	protected: 

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#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)
		{
			System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
			this->label1 = (gcnew System::Windows::Forms::Label());
			this->button1 = (gcnew System::Windows::Forms::Button());
			this->button2 = (gcnew System::Windows::Forms::Button());
			this->tab1 = (gcnew System::Windows::Forms::TabControl());
			this->tabPage1 = (gcnew System::Windows::Forms::TabPage());
			this->tabPage2 = (gcnew System::Windows::Forms::TabPage());
			this->label2 = (gcnew System::Windows::Forms::Label());
			this->button17 = (gcnew System::Windows::Forms::Button());
			this->button16 = (gcnew System::Windows::Forms::Button());
			this->generate = (gcnew System::Windows::Forms::Button());
			this->button14 = (gcnew System::Windows::Forms::Button());
			this->button13 = (gcnew System::Windows::Forms::Button());
			this->button12 = (gcnew System::Windows::Forms::Button());
			this->button11 = (gcnew System::Windows::Forms::Button());
			this->button10 = (gcnew System::Windows::Forms::Button());
			this->button9 = (gcnew System::Windows::Forms::Button());
			this->button8 = (gcnew System::Windows::Forms::Button());
			this->button7 = (gcnew System::Windows::Forms::Button());
			this->button6 = (gcnew System::Windows::Forms::Button());
			this->button5 = (gcnew System::Windows::Forms::Button());
			this->button4 = (gcnew System::Windows::Forms::Button());
			this->button3 = (gcnew System::Windows::Forms::Button());
			this->tabPage3 = (gcnew System::Windows::Forms::TabPage());
			this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox());
			this->about = (gcnew System::Windows::Forms::Label());
			this->tab1->SuspendLayout();
			this->tabPage1->SuspendLayout();
			this->tabPage2->SuspendLayout();
			this->tabPage3->SuspendLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->pictureBox1))->BeginInit();
			this->SuspendLayout();
			// 
			// label1
			// 
			this->label1->AutoSize = true;
			this->label1->Location = System::Drawing::Point(6, 15);
			this->label1->Name = L"label1";
			this->label1->Size = System::Drawing::Size(160, 13);
			this->label1->TabIndex = 0;
			this->label1->Text = L"I bet ya can\'t click teh butt0ns";
			this->label1->Click += gcnew System::EventHandler(this, &Form1::label1_Click);
			// 
			// button1
			// 
			this->button1->Location = System::Drawing::Point(3, 109);
			this->button1->Name = L"button1";
			this->button1->Size = System::Drawing::Size(75, 23);
			this->button1->TabIndex = 1;
			this->button1->TabStop = false;
			this->button1->Text = L"Click Me";
			this->button1->UseVisualStyleBackColor = true;
			this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
			this->button1->MouseEnter += gcnew System::EventHandler(this, &Form1::button1_MouseEnter);
			// 
			// button2
			// 
			this->button2->Location = System::Drawing::Point(167, 109);
			this->button2->Name = L"button2";
			this->button2->Size = System::Drawing::Size(75, 23);
			this->button2->TabIndex = 2;
			this->button2->TabStop = false;
			this->button2->Text = L"Click Me";
			this->button2->UseVisualStyleBackColor = true;
			this->button2->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
			this->button2->MouseEnter += gcnew System::EventHandler(this, &Form1::button2_MouseEnter);
			// 
			// tab1
			// 
			this->tab1->Controls->Add(this->tabPage1);
			this->tab1->Controls->Add(this->tabPage2);
			this->tab1->Controls->Add(this->tabPage3);
			this->tab1->Location = System::Drawing::Point(2, 2);
			this->tab1->Name = L"tab1";
			this->tab1->SelectedIndex = 0;
			this->tab1->Size = System::Drawing::Size(257, 194);
			this->tab1->TabIndex = 3;
			// 
			// tabPage1
			// 
			this->tabPage1->BackgroundImageLayout = System::Windows::Forms::ImageLayout::Stretch;
			this->tabPage1->Controls->Add(this->label1);
			this->tabPage1->Controls->Add(this->button2);
			this->tabPage1->Controls->Add(this->button1);
			this->tabPage1->Location = System::Drawing::Point(4, 21);
			this->tabPage1->Name = L"tabPage1";
			this->tabPage1->Padding = System::Windows::Forms::Padding(3);
			this->tabPage1->Size = System::Drawing::Size(249, 169);
			this->tabPage1->TabIndex = 0;
			this->tabPage1->Text = L"Click";
			this->tabPage1->UseVisualStyleBackColor = true;
			// 
			// tabPage2
			// 
			this->tabPage2->Controls->Add(this->label2);
			this->tabPage2->Controls->Add(this->button17);
			this->tabPage2->Controls->Add(this->button16);
			this->tabPage2->Controls->Add(this->generate);
			this->tabPage2->Controls->Add(this->button14);
			this->tabPage2->Controls->Add(this->button13);
			this->tabPage2->Controls->Add(this->button12);
			this->tabPage2->Controls->Add(this->button11);
			this->tabPage2->Controls->Add(this->button10);
			this->tabPage2->Controls->Add(this->button9);
			this->tabPage2->Controls->Add(this->button8);
			this->tabPage2->Controls->Add(this->button7);
			this->tabPage2->Controls->Add(this->button6);
			this->tabPage2->Controls->Add(this->button5);
			this->tabPage2->Controls->Add(this->button4);
			this->tabPage2->Controls->Add(this->button3);
			this->tabPage2->Location = System::Drawing::Point(4, 21);
			this->tabPage2->Name = L"tabPage2";
			this->tabPage2->Padding = System::Windows::Forms::Padding(3);
			this->tabPage2->Size = System::Drawing::Size(249, 169);
			this->tabPage2->TabIndex = 1;
			this->tabPage2->Text = L"The Game";
			this->tabPage2->UseVisualStyleBackColor = true;
			// 
			// label2
			// 
			this->label2->AutoSize = true;
			this->label2->Location = System::Drawing::Point(3, 149);
			this->label2->Name = L"label2";
			this->label2->Size = System::Drawing::Size(172, 13);
			this->label2->TabIndex = 15;
			this->label2->Text = L"Click \"Start\" to begin the puzzle.";
			// 
			// button17
			// 
			this->button17->Enabled = false;
			this->button17->Location = System::Drawing::Point(6, 123);
			this->button17->Name = L"button17";
			this->button17->Size = System::Drawing::Size(75, 23);
			this->button17->TabIndex = 14;
			this->button17->Text = L"Click";
			this->button17->UseVisualStyleBackColor = true;
			this->button17->Click += gcnew System::EventHandler(this, &Form1::button17_Click);
			// 
			// button16
			// 
			this->button16->Enabled = false;
			this->button16->Location = System::Drawing::Point(87, 123);
			this->button16->Name = L"button16";
			this->button16->Size = System::Drawing::Size(75, 23);
			this->button16->TabIndex = 13;
			this->button16->Text = L"Click";
			this->button16->UseVisualStyleBackColor = true;
			this->button16->Click += gcnew System::EventHandler(this, &Form1::button16_Click);
			// 
			// generate
			// 
			this->generate->FlatStyle = System::Windows::Forms::FlatStyle::Flat;
			this->generate->Location = System::Drawing::Point(168, 123);
			this->generate->Name = L"generate";
			this->generate->Size = System::Drawing::Size(75, 23);
			this->generate->TabIndex = 12;
			this->generate->Text = L"Start";
			this->generate->UseVisualStyleBackColor = true;
			this->generate->Click += gcnew System::EventHandler(this, &Form1::generate_Click);
			this->generate->MouseEnter += gcnew System::EventHandler(this, &Form1::generate_MouseEnter);
			// 
			// button14
			// 
			this->button14->Enabled = false;
			this->button14->Location = System::Drawing::Point(168, 94);
			this->button14->Name = L"button14";
			this->button14->Size = System::Drawing::Size(75, 23);
			this->button14->TabIndex = 11;
			this->button14->Text = L"Click";
			this->button14->UseVisualStyleBackColor = true;
			this->button14->Click += gcnew System::EventHandler(this, &Form1::button14_Click);
			// 
			// button13
			// 
			this->button13->Enabled = false;
			this->button13->Location = System::Drawing::Point(6, 94);
			this->button13->Name = L"button13";
			this->button13->Size = System::Drawing::Size(75, 23);
			this->button13->TabIndex = 10;
			this->button13->Text = L"Click";
			this->button13->UseVisualStyleBackColor = true;
			this->button13->Click += gcnew System::EventHandler(this, &Form1::button13_Click);
			// 
			// button12
			// 
			this->button12->Enabled = false;
			this->button12->Location = System::Drawing::Point(87, 94);
			this->button12->Name = L"button12";
			this->button12->Size = System::Drawing::Size(75, 23);
			this->button12->TabIndex = 9;
			this->button12->Text = L"Click";
			this->button12->UseVisualStyleBackColor = true;
			this->button12->Click += gcnew System::EventHandler(this, &Form1::button12_Click);
			// 
			// button11
			// 
			this->button11->Enabled = false;
			this->button11->Location = System::Drawing::Point(168, 6);
			this->button11->Name = L"button11";
			this->button11->Size = System::Drawing::Size(75, 23);
			this->button11->TabIndex = 8;
			this->button11->Text = L"Click";
			this->button11->UseVisualStyleBackColor = true;
			this->button11->Click += gcnew System::EventHandler(this, &Form1::button11_Click);
			// 
			// button10
			// 
			this->button10->Enabled = false;
			this->button10->Location = System::Drawing::Point(6, 36);
			this->button10->Name = L"button10";
			this->button10->Size = System::Drawing::Size(75, 23);
			this->button10->TabIndex = 7;
			this->button10->Text = L"Click";
			this->button10->UseVisualStyleBackColor = true;
			this->button10->Click += gcnew System::EventHandler(this, &Form1::button10_Click);
			// 
			// button9
			// 
			this->button9->Enabled = false;
			this->button9->Location = System::Drawing::Point(87, 65);
			this->button9->Name = L"button9";
			this->button9->Size = System::Drawing::Size(75, 23);
			this->button9->TabIndex = 6;
			this->button9->Text = L"Click";
			this->button9->UseVisualStyleBackColor = true;
			this->button9->Click += gcnew System::EventHandler(this, &Form1::button9_Click);
			// 
			// button8
			// 
			this->button8->Enabled = false;
			this->button8->Location = System::Drawing::Point(168, 36);
			this->button8->Name = L"button8";
			this->button8->Size = System::Drawing::Size(75, 23);
			this->button8->TabIndex = 5;
			this->button8->Text = L"Click";
			this->button8->UseVisualStyleBackColor = true;
			this->button8->Click += gcnew System::EventHandler(this, &Form1::button8_Click);
			// 
			// button7
			// 
			this->button7->Enabled = false;
			this->button7->Location = System::Drawing::Point(168, 65);
			this->button7->Name = L"button7";
			this->button7->Size = System::Drawing::Size(75, 23);
			this->button7->TabIndex = 4;
			this->button7->Text = L"Click";
			this->button7->UseVisualStyleBackColor = true;
			this->button7->Click += gcnew System::EventHandler(this, &Form1::button7_Click);
			// 
			// button6
			// 
			this->button6->Enabled = false;
			this->button6->Location = System::Drawing::Point(87, 36);
			this->button6->Name = L"button6";
			this->button6->Size = System::Drawing::Size(75, 23);
			this->button6->TabIndex = 3;
			this->button6->Text = L"Click";
			this->button6->UseVisualStyleBackColor = true;
			this->button6->Click += gcnew System::EventHandler(this, &Form1::button6_Click);
			// 
			// button5
			// 
			this->button5->Enabled = false;
			this->button5->Location = System::Drawing::Point(6, 65);
			this->button5->Name = L"button5";
			this->button5->Size = System::Drawing::Size(75, 23);
			this->button5->TabIndex = 2;
			this->button5->Text = L"Click";
			this->button5->UseVisualStyleBackColor = true;
			this->button5->Click += gcnew System::EventHandler(this, &Form1::button5_Click);
			// 
			// button4
			// 
			this->button4->Enabled = false;
			this->button4->Location = System::Drawing::Point(87, 7);
			this->button4->Name = L"button4";
			this->button4->Size = System::Drawing::Size(75, 23);
			this->button4->TabIndex = 1;
			this->button4->Text = L"Click";
			this->button4->UseVisualStyleBackColor = true;
			this->button4->Click += gcnew System::EventHandler(this, &Form1::button4_Click);
			// 
			// button3
			// 
			this->button3->Enabled = false;
			this->button3->Location = System::Drawing::Point(6, 7);
			this->button3->Name = L"button3";
			this->button3->Size = System::Drawing::Size(75, 23);
			this->button3->TabIndex = 0;
			this->button3->Text = L"Click";
			this->button3->UseVisualStyleBackColor = true;
			this->button3->Click += gcnew System::EventHandler(this, &Form1::button3_Click);
			// 
			// tabPage3
			// 
			this->tabPage3->BackColor = System::Drawing::Color::Transparent;
			this->tabPage3->Controls->Add(this->pictureBox1);
			this->tabPage3->Controls->Add(this->about);
			this->tabPage3->Location = System::Drawing::Point(4, 21);
			this->tabPage3->Name = L"tabPage3";
			this->tabPage3->Padding = System::Windows::Forms::Padding(3);
			this->tabPage3->Size = System::Drawing::Size(249, 169);
			this->tabPage3->TabIndex = 2;
			this->tabPage3->Text = L"Why\?\?\?!";
			// 
			// pictureBox1
			// 
			this->pictureBox1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"pictureBox1.Image")));
			this->pictureBox1->Location = System::Drawing::Point(66, 50);
			this->pictureBox1->Name = L"pictureBox1";
			this->pictureBox1->Size = System::Drawing::Size(22, 22);
			this->pictureBox1->TabIndex = 1;
			this->pictureBox1->TabStop = false;
			this->pictureBox1->Visible = false;
			// 
			// about
			// 
			this->about->AutoSize = true;
			this->about->Location = System::Drawing::Point(12, 7);
			this->about->MaximumSize = System::Drawing::Size(235, 0);
			this->about->Name = L"about";
			this->about->Size = System::Drawing::Size(224, 65);
			this->about->TabIndex = 0;
			this->about->Text = L"Here\'s the story... I was bored. Very bored,\r\nso I felt like creating a stupid li" 
				L"ttle C++ game based on button controls... try it :P\r\n\r\n~AresXP";
			this->about->MouseLeave += gcnew System::EventHandler(this, &Form1::about_MouseLeave);
			this->about->MouseEnter += gcnew System::EventHandler(this, &Form1::about_MouseEnter);
			// 
			// Form1
			// 
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
			this->BackColor = System::Drawing::SystemColors::ActiveBorder;
			this->BackgroundImage = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"$this.BackgroundImage")));
			this->ClientSize = System::Drawing::Size(260, 198);
			this->Controls->Add(this->tab1);
			this->ForeColor = System::Drawing::SystemColors::ControlText;
			this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedSingle;
			this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
			this->Name = L"Form1";
			this->Opacity = 0.85;
			this->ShowIcon = false;
			this->Text = L"Button games... xD";
			this->TopMost = true;
			this->tab1->ResumeLayout(false);
			this->tabPage1->ResumeLayout(false);
			this->tabPage1->PerformLayout();
			this->tabPage2->ResumeLayout(false);
			this->tabPage2->PerformLayout();
			this->tabPage3->ResumeLayout(false);
			this->tabPage3->PerformLayout();
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->pictureBox1))->EndInit();
			this->ResumeLayout(false);

		}
#pragma endregion
	private: System::Void button1_MouseEnter(System::Object^  sender, System::EventArgs^  e) {
				 this->button1->Enabled = false;
				 this->button2->Enabled = true;
			 }
	private: System::Void button2_MouseEnter(System::Object^  sender, System::EventArgs^  e) {
				 this->button2->Enabled = false;
				 this->button1->Enabled = true;
			 }
	private: System::Void label1_Click(System::Object^  sender, System::EventArgs^  e) {
				 MessageBox::Show("SURPRIzE!", "Oh n0es O.o");
			 }
	private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
				 this->label1->Text = L"zoooOMG!!! You clicked da butoon!!one!!11!!";
			 }
private: System::Void button3_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 1) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void button4_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 2) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void button11_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 3) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void button10_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 4) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void button6_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 5) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void button8_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 6) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void button5_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 7) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void button9_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 8) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void button7_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 9) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void button13_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 10) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void button12_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 11) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void button14_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 12) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void button17_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 13) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void button16_Click(System::Object^  sender, System::EventArgs^  e) {
			 tries++;
			 if(i_rdn == 14) {
				 MessageBox::Show("Found me! Tries: "+tries);
				 tries = 0;
			 } else {
				 i_rdn = (rand()%14)+1;
				 this->label2->Text = L"Nope! Try again! -- "+tries;
			 }
		 }
private: System::Void generate_Click(System::Object^  sender, System::EventArgs^  e) {
			 i_rdn = (rand()%14)+1; //one to 14 ;)
			 //if we didn't start yet... otherwise, no need to re-enable the buttons.
			 if(started == 0) {
				this->button3->Enabled = true;
				this->button4->Enabled = true;
				this->button5->Enabled = true;
				this->button6->Enabled = true;
				this->button7->Enabled = true;
				this->button8->Enabled = true;
				this->button9->Enabled = true;
				this->button10->Enabled = true;
				this->button11->Enabled = true;
				this->button12->Enabled = true;
				this->button13->Enabled = true;
				this->button14->Enabled = true;
				this->button16->Enabled = true;
				this->button17->Enabled = true;
				started = 1;
			 }
			 //if we click again, we regenerate the numbers.
			 this->label2->Text = L"Try to find the right button!";
			 this->generate->Text = L"Restart";
		 }
private: System::Void generate_MouseEnter(System::Object^  sender, System::EventArgs^  e) {
			 if(started == 0) {
				this->label2->Text = L"Start and find the right button!";
			 }
		 }
private: System::Void about_MouseEnter(System::Object^  sender, System::EventArgs^  e) {
			 this->pictureBox1->Show();
		 }
private: System::Void about_MouseLeave(System::Object^  sender, System::EventArgs^  e) {
			 this->pictureBox1->Hide();
		 }
};
}