Using system;
Using system. drawing;
Using system. collections;
Using system. componentmodel;
Using system. Windows. forms;
Using system. Data;
Using system. diagnostics;
Namespace windowsapplication3
{
/// <Summary>
/// Summary of form1.
/// </Summary>
Public class form1: system. Windows. Forms. Form
{
Private system. componentmodel. icontainer components;
Private system. Diagnostics. Process process;
Private system. Windows. Forms. Button button1;
// Form2;
// Graphics G = picturebox1.creategraphics ();
Public form1 ()
{
//
// Required for Windows Form Designer support
//
Initializecomponent ();
//
// Todo: add Any constructor code after initializecomponent calls
//
}
/// <Summary>
/// Clear all resources in use.
/// </Summary>
Protected override void dispose (bool disposing)
{
If (disposing)
{
If (components! = NULL)
{
Components. Dispose ();
}
}
Base. Dispose (disposing );
}
# Region code generated by Windows Form Designer
/// <Summary>
/// The designer supports the required methods-do not use the code editor to modify
/// Content of this method.
/// </Summary>
Private void initializecomponent ()
{
This. button1 = new system. Windows. Forms. Button ();
This. suspendlayout ();
//
// Button1
//
This. button1.location = new system. Drawing. Point (136,144 );
This. button1.name = "button1 ";
This. button1.tabindex = 0;
This. button1.text = "button1 ";
This. button1.click + = new system. eventhandler (this. button#click_1 );
//
// Form1
//
This. autoscalebasesize = new system. Drawing. Size (6, 14 );
This. clientsize = new system. Drawing. Size (344,302 );
This. Controls. Add (this. button1 );
This. helpbutton = true;
This. Name = "form1 ";
This. Text = "form1 ";
This. helprequested + = new system. Windows. Forms. helpeventhandler (this. form1_helprequested );
This. Paint + = new system. Windows. Forms. painteventhandler (this. form1_paint );
This. resumelayout (false );
}
# Endregion
/// <Summary>
/// Main entry point of the application.
/// </Summary>
[Stathread]
Static void main ()
{
Application. Run (New form1 ());
}
Private void form=helprequested (Object sender, system. Windows. Forms. helpeventargs hlpevent)
{
}
Private void formatepaint (Object sender, system. Windows. Forms. painteventargs E)
{
}
Private void button1_click_1 (Object sender, system. eventargs E)
{
Process = new process ();
Process. startinfo. filename = "skate.exe ";
// Process. startinfo. filename = @ "F:/C #/puzzle game 2/bin/release/spell map game 2.exe ";
This. process. Start ();
}
Private void pictureboxappspaint (Object sender, system. Windows. Forms. painteventargs E)
{
}
}
}