Showing posts with label windows forms application. Show all posts
Showing posts with label windows forms application. Show all posts

Wednesday, October 3

Brick Out Game C# Language(Complete Source Code)

Download Here: Brick Out Game c# Language
Video Tutorial:




Ball.cs File Code



using System;
using System.Drawing;
using System.Drawing.Drawing2D;

namespace BrickOut
{
/// <summary>
/// 
/// </summary>
public class Ball : GameObject
{
        public int XStep = 5;
        public int YStep = 5;

Slide Show Windows Form Application

Download Here: Image Slide Show
c# Code:

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;
using System.IO;
using System.Threading;

namespace imageShow
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {

        }

        private void Form1_Load(object sender, EventArgs e)
        {
           

            timer1.Enabled = true;
           // int i = 1;
            timer1.Tick += new EventHandler(timer1_Tick);
            timer1.Interval = (2000);
        }
        int i = 1;
        private void timer1_Tick(object sender, EventArgs e)
        {
            pictureBox1.BackgroundImage = Image.FromFile(@"images\"+i.ToString()+".jpg");
            i++;
            if (i == 8)
            {
                i = 1;
            }
        }

    }
}