Tuesday, July 5, 2011

Sample project Maze game in windows form application source code

Hi! friends this is another sample project in windows form application.I have created simple Maze Game by using only labels and panel.Maze is  design by dragging and dropping in visual studio 2010.I have added start sound and game end sound also.
    In this project, user has to move the mouse pointer from the start to the finish without touching any of the walls. At the end of these project you learn how to:

  • Lay out a form using a Panel container.
  • Build a maze using Label controls.
  • Write code to show a message box.
  • Set up event handlers for mouse events.
  • Play sounds in your program.
  • Organize your code using classes.
Here's how the maze will work: The mouse pointer starts at the upper-left corner of the maze. The user navigates through the maze, being careful not to touch any of the walls with the pointer. If the pointer touches one of the walls, it automatically jumps back to the start. But if the pointer reaches the Finish label at the end of the maze, a "Congratulations" message box opens, and the game ends.


Here is a source code written in c sharp copy each block of code and save them in separate file and create new project on windows form application and compile it.


|--------------------------------------------------------------------------|
|                                  Program.cs                                         | 
|                                                                                            |
|--------------------------------------------------------------------------|



using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;


namespace MazeGame
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}

//Program.cs


|--------------------------------------------------------------------------|
|                                  Form.cs                                              | 
|                                                                                            |
|--------------------------------------------------------------------------|




using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace MazeGame
{
    public partial class Form1 : Form
    {
        // This SoundPlayer plays a sound whenever the player hits a wall.
        System.Media.SoundPlayer startSoundPlayer = new System.Media.SoundPlayer(@"C:\Windows\Media\chord.wav");


        // This SoundPlayer plays a sound when the player finishes the game.
        System.Media.SoundPlayer finishSoundPlayer = new System.Media.SoundPlayer(@"C:\Windows\Media\tada.wav");




        public Form1()
        {
            InitializeComponent();
            MoveToStart();
        }


        private void label35_Click(object sender, EventArgs e)
        {


        }


        private void finishlabel_MouseEnter(object sender, EventArgs e)
        {
            ///shows when game is over
            finishSoundPlayer.Play();
            MessageBox.Show("Congratulation You won");
            Close();
        }


        private void MoveToStart()
        {
            startSoundPlayer.Play();
            Point startingPoint = panel1.Location;
            startingPoint.Offset(10, 10);
            Cursor.Position = PointToScreen(startingPoint);
        }


        private void Wall_MouseEnter(object sender, EventArgs e)
        {
            MoveToStart();
        }
    }
}


//end of the Form1.cs


|--------------------------------------------------------------------------|
|                                  Form1.Designer.cs                              | 
|                                                                                            |
|--------------------------------------------------------------------------|


namespace MazeGame
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #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>
        private void InitializeComponent()
        {
            this.panel1 = new System.Windows.Forms.Panel();
            this.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            this.label7 = new System.Windows.Forms.Label();
            this.label8 = new System.Windows.Forms.Label();
            this.label9 = new System.Windows.Forms.Label();
            this.label10 = new System.Windows.Forms.Label();
            this.label11 = new System.Windows.Forms.Label();
            this.label12 = new System.Windows.Forms.Label();
            this.label13 = new System.Windows.Forms.Label();
            this.label14 = new System.Windows.Forms.Label();
            this.label15 = new System.Windows.Forms.Label();
            this.label16 = new System.Windows.Forms.Label();
            this.label17 = new System.Windows.Forms.Label();
            this.label18 = new System.Windows.Forms.Label();
            this.label19 = new System.Windows.Forms.Label();
            this.label20 = new System.Windows.Forms.Label();
            this.label21 = new System.Windows.Forms.Label();
            this.label22 = new System.Windows.Forms.Label();
            this.label23 = new System.Windows.Forms.Label();
            this.label24 = new System.Windows.Forms.Label();
            this.label25 = new System.Windows.Forms.Label();
            this.label26 = new System.Windows.Forms.Label();
            this.label27 = new System.Windows.Forms.Label();
            this.label28 = new System.Windows.Forms.Label();
            this.label29 = new System.Windows.Forms.Label();
            this.label30 = new System.Windows.Forms.Label();
            this.label31 = new System.Windows.Forms.Label();
            this.label32 = new System.Windows.Forms.Label();
            this.label33 = new System.Windows.Forms.Label();
            this.label34 = new System.Windows.Forms.Label();
            this.label35 = new System.Windows.Forms.Label();
            this.label36 = new System.Windows.Forms.Label();
            this.label38 = new System.Windows.Forms.Label();
            this.label39 = new System.Windows.Forms.Label();
            this.label40 = new System.Windows.Forms.Label();
            this.label41 = new System.Windows.Forms.Label();
            this.label42 = new System.Windows.Forms.Label();
            this.finishlabel = new System.Windows.Forms.Label();
            this.panel1.SuspendLayout();
            this.SuspendLayout();
            // 
            // panel1
            // 
            this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.panel1.Controls.Add(this.finishlabel);
            this.panel1.Controls.Add(this.label42);
            this.panel1.Controls.Add(this.label41);
            this.panel1.Controls.Add(this.label40);
            this.panel1.Controls.Add(this.label39);
            this.panel1.Controls.Add(this.label38);
            this.panel1.Controls.Add(this.label36);
            this.panel1.Controls.Add(this.label35);
            this.panel1.Controls.Add(this.label34);
            this.panel1.Controls.Add(this.label33);
            this.panel1.Controls.Add(this.label32);
            this.panel1.Controls.Add(this.label31);
            this.panel1.Controls.Add(this.label30);
            this.panel1.Controls.Add(this.label29);
            this.panel1.Controls.Add(this.label28);
            this.panel1.Controls.Add(this.label27);
            this.panel1.Controls.Add(this.label26);
            this.panel1.Controls.Add(this.label25);
            this.panel1.Controls.Add(this.label24);
            this.panel1.Controls.Add(this.label23);
            this.panel1.Controls.Add(this.label22);
            this.panel1.Controls.Add(this.label21);
            this.panel1.Controls.Add(this.label20);
            this.panel1.Controls.Add(this.label19);
            this.panel1.Controls.Add(this.label18);
            this.panel1.Controls.Add(this.label17);
            this.panel1.Controls.Add(this.label16);
            this.panel1.Controls.Add(this.label15);
            this.panel1.Controls.Add(this.label14);
            this.panel1.Controls.Add(this.label13);
            this.panel1.Controls.Add(this.label12);
            this.panel1.Controls.Add(this.label11);
            this.panel1.Controls.Add(this.label10);
            this.panel1.Controls.Add(this.label9);
            this.panel1.Controls.Add(this.label8);
            this.panel1.Controls.Add(this.label7);
            this.panel1.Controls.Add(this.label6);
            this.panel1.Controls.Add(this.label5);
            this.panel1.Controls.Add(this.label4);
            this.panel1.Controls.Add(this.label3);
            this.panel1.Controls.Add(this.label2);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Location = new System.Drawing.Point(12, 12);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(548, 485);
            this.panel1.TabIndex = 0;
            this.panel1.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label1
            // 
            this.label1.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label1.Location = new System.Drawing.Point(16, 157);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(44, 20);
            this.label1.TabIndex = 0;
            this.label1.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label2
            // 
            this.label2.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label2.Location = new System.Drawing.Point(84, 308);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(202, 20);
            this.label2.TabIndex = 1;
            this.label2.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label3
            // 
            this.label3.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label3.Location = new System.Drawing.Point(63, 347);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(174, 22);
            this.label3.TabIndex = 2;
            this.label3.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label4
            // 
            this.label4.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label4.Location = new System.Drawing.Point(86, 258);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(70, 20);
            this.label4.TabIndex = 3;
            this.label4.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label5
            // 
            this.label5.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label5.Location = new System.Drawing.Point(63, 212);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(114, 23);
            this.label5.TabIndex = 4;
            this.label5.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label6
            // 
            this.label6.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label6.Location = new System.Drawing.Point(107, 147);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(175, 18);
            this.label6.TabIndex = 5;
            this.label6.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label7
            // 
            this.label7.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label7.Location = new System.Drawing.Point(385, 23);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(127, 21);
            this.label7.TabIndex = 6;
            this.label7.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label8
            // 
            this.label8.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label8.Location = new System.Drawing.Point(324, 77);
            this.label8.Name = "label8";
            this.label8.Size = new System.Drawing.Size(41, 19);
            this.label8.TabIndex = 7;
            this.label8.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label9
            // 
            this.label9.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label9.Location = new System.Drawing.Point(253, 23);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(68, 21);
            this.label9.TabIndex = 8;
            this.label9.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label10
            // 
            this.label10.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label10.Location = new System.Drawing.Point(77, 100);
            this.label10.Name = "label10";
            this.label10.Size = new System.Drawing.Size(160, 19);
            this.label10.TabIndex = 9;
            this.label10.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label11
            // 
            this.label11.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label11.Location = new System.Drawing.Point(77, 34);
            this.label11.Name = "label11";
            this.label11.Size = new System.Drawing.Size(79, 21);
            this.label11.TabIndex = 10;
            this.label11.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label12
            // 
            this.label12.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label12.Location = new System.Drawing.Point(60, 34);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(20, 143);
            this.label12.TabIndex = 11;
            this.label12.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label13
            // 
            this.label13.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label13.Location = new System.Drawing.Point(236, 23);
            this.label13.Name = "label13";
            this.label13.Size = new System.Drawing.Size(21, 96);
            this.label13.TabIndex = 12;
            this.label13.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label14
            // 
            this.label14.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label14.Location = new System.Drawing.Point(174, 0);
            this.label14.Name = "label14";
            this.label14.Size = new System.Drawing.Size(21, 80);
            this.label14.TabIndex = 13;
            this.label14.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label15
            // 
            this.label15.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label15.Location = new System.Drawing.Point(282, 62);
            this.label15.Name = "label15";
            this.label15.Size = new System.Drawing.Size(19, 180);
            this.label15.TabIndex = 14;
            this.label15.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label16
            // 
            this.label16.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label16.Location = new System.Drawing.Point(9, 417);
            this.label16.Name = "label16";
            this.label16.Size = new System.Drawing.Size(17, 45);
            this.label16.TabIndex = 15;
            this.label16.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label17
            // 
            this.label17.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label17.Location = new System.Drawing.Point(63, 407);
            this.label17.Name = "label17";
            this.label17.Size = new System.Drawing.Size(17, 33);
            this.label17.TabIndex = 16;
            this.label17.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label18
            // 
            this.label18.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label18.Location = new System.Drawing.Point(504, 114);
            this.label18.Name = "label18";
            this.label18.Size = new System.Drawing.Size(20, 296);
            this.label18.TabIndex = 17;
            this.label18.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label19
            // 
            this.label19.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label19.Location = new System.Drawing.Point(155, 235);
            this.label19.Name = "label19";
            this.label19.Size = new System.Drawing.Size(22, 43);
            this.label19.TabIndex = 18;
            this.label19.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label20
            // 
            this.label20.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label20.Location = new System.Drawing.Point(43, 212);
            this.label20.Name = "label20";
            this.label20.Size = new System.Drawing.Size(20, 157);
            this.label20.TabIndex = 19;
            this.label20.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label21
            // 
            this.label21.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label21.Location = new System.Drawing.Point(107, 165);
            this.label21.Name = "label21";
            this.label21.Size = new System.Drawing.Size(22, 47);
            this.label21.TabIndex = 20;
            this.label21.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label22
            // 
            this.label22.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label22.Location = new System.Drawing.Point(362, 0);
            this.label22.Name = "label22";
            this.label22.Size = new System.Drawing.Size(23, 96);
            this.label22.TabIndex = 21;
            this.label22.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label23
            // 
            this.label23.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label23.Location = new System.Drawing.Point(218, 164);
            this.label23.Name = "label23";
            this.label23.Size = new System.Drawing.Size(19, 126);
            this.label23.TabIndex = 22;
            this.label23.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label24
            // 
            this.label24.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label24.Location = new System.Drawing.Point(282, 242);
            this.label24.Name = "label24";
            this.label24.Size = new System.Drawing.Size(70, 20);
            this.label24.TabIndex = 23;
            this.label24.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label25
            // 
            this.label25.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label25.Location = new System.Drawing.Point(466, 67);
            this.label25.Name = "label25";
            this.label25.Size = new System.Drawing.Size(58, 20);
            this.label25.TabIndex = 24;
            this.label25.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label26
            // 
            this.label26.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label26.Location = new System.Drawing.Point(348, 114);
            this.label26.Name = "label26";
            this.label26.Size = new System.Drawing.Size(100, 20);
            this.label26.TabIndex = 25;
            this.label26.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label27
            // 
            this.label27.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label27.Location = new System.Drawing.Point(304, 278);
            this.label27.Name = "label27";
            this.label27.Size = new System.Drawing.Size(81, 20);
            this.label27.TabIndex = 26;
            this.label27.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label28
            // 
            this.label28.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label28.Location = new System.Drawing.Point(385, 303);
            this.label28.Name = "label28";
            this.label28.Size = new System.Drawing.Size(123, 20);
            this.label28.TabIndex = 27;
            this.label28.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label29
            // 
            this.label29.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label29.Location = new System.Drawing.Point(29, 387);
            this.label29.Name = "label29";
            this.label29.Size = new System.Drawing.Size(208, 20);
            this.label29.TabIndex = 28;
            this.label29.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label30
            // 
            this.label30.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label30.Location = new System.Drawing.Point(253, 347);
            this.label30.Name = "label30";
            this.label30.Size = new System.Drawing.Size(19, 117);
            this.label30.TabIndex = 29;
            this.label30.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label31
            // 
            this.label31.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label31.Location = new System.Drawing.Point(286, 278);
            this.label31.Name = "label31";
            this.label31.Size = new System.Drawing.Size(19, 91);
            this.label31.TabIndex = 30;
            this.label31.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label32
            // 
            this.label32.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label32.Location = new System.Drawing.Point(385, 147);
            this.label32.Name = "label32";
            this.label32.Size = new System.Drawing.Size(19, 156);
            this.label32.TabIndex = 31;
            this.label32.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label33
            // 
            this.label33.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label33.Location = new System.Drawing.Point(448, 67);
            this.label33.Name = "label33";
            this.label33.Size = new System.Drawing.Size(19, 193);
            this.label33.TabIndex = 32;
            this.label33.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label34
            // 
            this.label34.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label34.Location = new System.Drawing.Point(333, 114);
            this.label34.Name = "label34";
            this.label34.Size = new System.Drawing.Size(19, 128);
            this.label34.TabIndex = 33;
            this.label34.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label35
            // 
            this.label35.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label35.Location = new System.Drawing.Point(408, 372);
            this.label35.Name = "label35";
            this.label35.Size = new System.Drawing.Size(19, 77);
            this.label35.TabIndex = 34;
            this.label35.Click += new System.EventHandler(this.label35_Click);
            this.label35.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label36
            // 
            this.label36.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label36.Location = new System.Drawing.Point(333, 321);
            this.label36.Name = "label36";
            this.label36.Size = new System.Drawing.Size(19, 51);
            this.label36.TabIndex = 35;
            this.label36.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label38
            // 
            this.label38.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label38.Location = new System.Drawing.Point(351, 352);
            this.label38.Name = "label38";
            this.label38.Size = new System.Drawing.Size(153, 20);
            this.label38.TabIndex = 37;
            this.label38.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label39
            // 
            this.label39.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label39.Location = new System.Drawing.Point(455, 387);
            this.label39.Name = "label39";
            this.label39.Size = new System.Drawing.Size(19, 77);
            this.label39.TabIndex = 38;
            this.label39.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label40
            // 
            this.label40.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label40.Location = new System.Drawing.Point(272, 444);
            this.label40.Name = "label40";
            this.label40.Size = new System.Drawing.Size(107, 20);
            this.label40.TabIndex = 39;
            this.label40.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label41
            // 
            this.label41.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label41.Location = new System.Drawing.Point(270, 401);
            this.label41.Name = "label41";
            this.label41.Size = new System.Drawing.Size(141, 20);
            this.label41.TabIndex = 40;
            this.label41.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // label42
            // 
            this.label42.BackColor = System.Drawing.SystemColors.MenuHighlight;
            this.label42.Location = new System.Drawing.Point(123, 423);
            this.label42.Name = "label42";
            this.label42.Size = new System.Drawing.Size(130, 20);
            this.label42.TabIndex = 41;
            this.label42.MouseEnter += new System.EventHandler(this.Wall_MouseEnter);
            // 
            // finishlabel
            // 
            this.finishlabel.AutoSize = true;
            this.finishlabel.Location = new System.Drawing.Point(501, 455);
            this.finishlabel.Name = "finishlabel";
            this.finishlabel.Size = new System.Drawing.Size(31, 13);
            this.finishlabel.TabIndex = 42;
            this.finishlabel.Text = "finish";
            this.finishlabel.MouseEnter += new System.EventHandler(this.finishlabel_MouseEnter);
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(572, 509);
            this.Controls.Add(this.panel1);
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Form1";
            this.Text = "MAZE";
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.Label label39;
        private System.Windows.Forms.Label label38;
        private System.Windows.Forms.Label label36;
        private System.Windows.Forms.Label label35;
        private System.Windows.Forms.Label label34;
        private System.Windows.Forms.Label label33;
        private System.Windows.Forms.Label label32;
        private System.Windows.Forms.Label label31;
        private System.Windows.Forms.Label label30;
        private System.Windows.Forms.Label label29;
        private System.Windows.Forms.Label label28;
        private System.Windows.Forms.Label label27;
        private System.Windows.Forms.Label label26;
        private System.Windows.Forms.Label label25;
        private System.Windows.Forms.Label label24;
        private System.Windows.Forms.Label label23;
        private System.Windows.Forms.Label label22;
        private System.Windows.Forms.Label label21;
        private System.Windows.Forms.Label label20;
        private System.Windows.Forms.Label label19;
        private System.Windows.Forms.Label label18;
        private System.Windows.Forms.Label label17;
        private System.Windows.Forms.Label label16;
        private System.Windows.Forms.Label label15;
        private System.Windows.Forms.Label label14;
        private System.Windows.Forms.Label label13;
        private System.Windows.Forms.Label label12;
        private System.Windows.Forms.Label label11;
        private System.Windows.Forms.Label label10;
        private System.Windows.Forms.Label label9;
        private System.Windows.Forms.Label label8;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label42;
        private System.Windows.Forms.Label label41;
        private System.Windows.Forms.Label label40;
        private System.Windows.Forms.Label finishlabel;
    }
}

//end of the Form1.Designer.cs

|--------------------------------------------------------------------------|
|                                  AssemblyInfo.cs                                 | 
|                                                                                            |
|--------------------------------------------------------------------------|


using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following 
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("MazeGame")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("MazeGame")]
[assembly: AssemblyCopyright("Copyright ©  2011")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible 
// to COM components.  If you need to access a type in this assembly from 
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("56d73ba7-3c74-4833-a899-a7eb3d6f080d")]

// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Build and Revision Numbers 
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

//end of the AssemblyInfo.cs
//end of the program


5 comments:

  1. wow what a nice blog....good job man

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  3. i just wonna tell that there are over 50 errs in this program sorry m8

    ReplyDelete