Thursday, July 18, 2013

ATM Project in C# Window application

Simple Media Player in c# window application Open Visual studio just follow to simple step
Visual c# - Windows From Application - OK
Take 4 label, 2 links, 3 text boxes, 2 buttons, groups box, 1 droop-down box, 1 timer and 1 progress bar
copy this code :

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

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

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            textBox2.Text = comboBox1.Text;
        }

        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            textBox3.Text = textBox1.Text;
            textBox1.Text = " ";
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Your Information are saved");
            MessageBox.Show("Welcome to", textBox1.Text);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Information are not currect");
             comboBox1.Text = "";
             textBox1.Text = "";
             textBox2.Text = "";
             textBox3.Text = "";
        }
        int i;
        private void timer1_Tick(object sender, EventArgs e)
        {
            if (i == 15)
            {
                Form1 f1 = new Form1();
               
                this.Hide();
                Form2 f2 = new Form2();
                f2.Show();
            }
            i++;
            progressBar1.PerformStep();
        }
        private void button4_Click(object sender, EventArgs e)
        {
            timer1.Start();
            progressBar1.Minimum = i;
            progressBar1.Maximum = 10;
            
        }

        private void button5_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }
    }
}

take 3 buttons, 2 labels and 1 text box.

copy this code :

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

namespace BankIng_Project
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Your ATM Card has been Inserted");
        }
        
        private void button2_Click(object sender, EventArgs e)
        {
            String a;
            a = textBox1.Text;
            if (a == "1234")
            {
                MessageBox.Show("Valid Password");
                Form2 f2 = new Form2();
                this.Hide();
                Form3 f3 = new Form3();
                f3.Show();
            }
            else
            {
                MessageBox.Show("Invalid Password");
                MessageBox.Show("Try Again");
                MessageBox.Show("Thankx for using ATM Banking Service");
            }
        }
    }
}
take 2 buttons
copy this code : 

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

namespace BankIng_Project
{
    public partial class Form3 : Form
    {
        public Form3()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form4 f4 = new Form4();
            f4.Show();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            MessageBox.Show("The Account is used for only terms");
            MessageBox.Show("Use the Saving Account for WithDeawing Money");
        }
    }
}
take 2 buttons

copy this code : 

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

namespace BankIng_Project
{
    public partial class Form4 : Form
    {
        public Form4()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Available Balance : 1000 INR");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form5 f5 = new Form5();
            f5.Show();
        }
    }
}
take 3 labels, 2 buttons, 3 text boxes,1 timer and 1 progressbar

copy this code :

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

namespace BankIng_Project
{
    public partial class Form5 : Form
    {
        public Form5()
        {
            InitializeComponent();
        }
        Double i;
        int a;
        public void button1_Click(object sender, EventArgs e)
        {
            i = Convert.ToDouble(textBox1.Text);
            Double j = Convert.ToDouble(textBox2.Text);
            Double k = i - j;
            textBox3.Text = k.ToString();

            timer1.Start();
            progressBar1.Minimum = a;
            progressBar1.Maximum = 10;
        }


        private void timer1_Tick(object sender, EventArgs e)
        {
            if (a == 10)
                a++;
            progressBar1.PerformStep();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Thankx For Using");
            MessageBox.Show("Keep Visiting");
            Application.Exit();
        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {

        }

        private void progressBar1_Click(object sender, EventArgs e)
        {

        }
    }
}
Now double click on Browser Button and copy this code
now click F5 for run............. Your Suggestion in Comment Box

10 comments:

  1. sir please ; explain from very beinging ; how to start ; each n every step ;

    ReplyDelete
  2. sir i need help...what is it total project??

    ReplyDelete
  3. sir i need help....what is it total project???

    ReplyDelete
  4. its vary excellent but we requested to you to upload a video of this

    ReplyDelete
  5. Please after pressing the proceed button in form 1 it's giving an unending loop

    ReplyDelete
  6. After clicking the proceed button in form 1 it is giving and unending loop of form 2

    ReplyDelete
  7. Weare is Dta Base Code? Plz Uplode Send Or Uplode Quicle

    ReplyDelete

My First Investment

My First Investment This is a story of my first investment experience. I started investment 6 month before. As everyone has a desired ...