I'm having some difficulty implimenting a timer in my Windows.Forms project. I want the application to present a single Form for a specific period of time and close itself (currently I have the timer popping a message box with a 'hello' message).

My project is compiling properly, but the timer isn't working. I've read many posts, read the Microsoft guides and other resources and can't seem to figure this one out.

My simplistic code is as follows:

///////////////////////////////////////////////////////////////////////////////////////////

#pragma once


namespace hide {

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System:ata;
using namespace System:rawing;

/// <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
//
createTimer();
InitializeTimer();
}

public:
void createTimer()
{
System::Windows::Forms::Timer^ mytimer1 = gcnew
System::Windows::Forms::Timer();

}

private:
void InitializeTimer()
{
timer1->Interval = 10000;
timer1->Enabled = true;
timer1->Start();
}

void mytimer1(System::Object ^ sender, System::EventArgs ^ e)
{
MessageBox::Show("Hello", "Hello", MessageBoxButtons::OK);
}


protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Timer^ timer1;
protected:
private: System::ComponentModel::IContainer^ components;

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());
this->timer1 = (gcnew System::Windows::Forms::Timer(this->components));
this->SuspendLayout();
//
// timer1
//
this->timer1->Tick += gcnew System::EventHandler(this, &Form1::timer1_Tick_1);
//
// Form1
//
this->AutoScaleDimensions = System:rawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System:rawing::Size(829, 476);
this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::Fixed3D;
this->Name = L"Form1";
this->Text = L"Form1";
this->ResumeLayout(false);

}
#pragma endregion
private: System::Void timer1_Tick_1(System::Object^ sender, System::EventArgs^ e) {
}
};
}

///////////////////////////////////////////////////////////////////////////////////////////////

Any help or guidance would be greatly appreciated.