Showing posts with label Projects. Show all posts
Showing posts with label Projects. Show all posts

Thursday, 13 June 2013

How to make Typing Speed Tester in C#

How to make Typing Speed Tester in C#

Typing Speed Tester is an exciting game where you can test your typing skills.By using this you can find your words per minute speed and it will provide you filtered result of your correct, incorrect and untype words .It will provide you 100% accurate result free of any error.You can practice daily and can improve your speed.Share it with your friends and compare your results with them.Now Let’s start the journey and see how fast you can type?

Code

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

namespace TypingSpeed
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        string[] data;
        private void Form1_Load(object sender, EventArgs e)
        {
            textBox2.Text = "When the test first starts up, it will present you with a choice of lesson and time. If you are in a hurry, choose the 1 Minute Timed Typing Test. For a more accurate assessment, choose the 5 Minute Test. Lessons 26-35 are the classic story lessons and can make a better overall assessment by typing natural sentences. All the other lessons are available, so if you want to see what your wpm is on the home row keys, or your speed in the 10-key you can. New lessons 38 through 40 include Spanish, French and German words. Lessons 36 and 37 are commonly misspelled words. Our words per minute calculation is based on two factors. The first is the number of characters typed in a given time. Words per minute is determined by the standard calculation of 5 characters per word. ";
            string input = textBox2.Text;
            data = input.Split(' ');
            button1.Focus();
        }

        private static int g = 0;
     
        private void button1_Click(object sender, EventArgs e)
        {
            timer1.Enabled = true;
            textBox1.Text = "";
            textBox1.ReadOnly = false;
            textBox1.Focus();
            textBox3.Text = "";
            label1.Text = "No of Right Words: ";
            label6.Text = "No of Wrong Words: ";
            label3.Text = "No of Untype Words: ";
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            g++;
            label8.Text = g.ToString();
            if (g > 59)
            {
                int i = 0;
                int k = 0;
                string output = textBox1.Text;
                string[] str = output.Split(' ');
                for (int j = 0; j < str.Length; j++)
                {
                    if (str[j] == data[j])
                        i++;
                    else if (str[j] != data[j])
                        k++;
                }
                label1.Text += i.ToString();
                label6.Text += k.ToString();
                textBox3.Text = i.ToString();
                label3.Text += (data.Length - str.Length).ToString();
                textBox1.ReadOnly = true;
                button1.Focus();
                timer1.Enabled = false;
                g = 0;
            }
        }
    }

}


Screen Shot

How to make Typing Speed Tester in C#

How to make Simple Phone Book

How to make Simple Phone Book



Code

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

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

        private void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text == "" && textBox2.Text == "" && maskedTextBox1.Text.Length < 11)
                MessageBox.Show("Enter Data in all fields");
            else
            {
                dataGridView1.Rows.Add(textBox1.Text, textBox2.Text, maskedTextBox1.Text);
                textBox1.Text = "";
                textBox2.Text = "";
                maskedTextBox1.Text = "";
                textBox1.Focus();
            }
        }

        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            textBox3.Text = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
            textBox4.Text = dataGridView1.SelectedRows[0].Cells[1].Value.ToString();
            maskedTextBox2.Text = dataGridView1.SelectedRows[0].Cells[2].Value.ToString();
        }

        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            DialogResult Result = MessageBox.Show("Do you really want to Delete???", "Confirmation", MessageBoxButtons.YesNo);
            if (Result == DialogResult.Yes)
            {
                dataGridView1.Rows.RemoveAt(dataGridView1.SelectedRows[0].Index);
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            if (textBox3.Text == "" && textBox4.Text == "" && maskedTextBox2.Text.Length < 11)
                MessageBox.Show("Enter Data in all fields");
            else
            {
                dataGridView1.SelectedRows[0].Cells[0].Value = textBox3.Text;
                dataGridView1.SelectedRows[0].Cells[1].Value = textBox4.Text;
                dataGridView1.SelectedRows[0].Cells[2].Value = maskedTextBox2.Text;
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }

}


Screen Shot

How to make Simple Phone Book

Wednesday, 12 June 2013

How to make Hospital Management System| Project

How to make Hospital Management System | Project

Screen Shot
                                       

How to make hospital management system | Project                                       


How to make hospital management system | Project




How to make hospital management system | Project



How to make hospital management system | Project


Visit :http://bel4solutions.com/

Monday, 10 June 2013

How to make Inventory Management System

How to make Inventory management system !


There is a AWAN ATOUS Inventory software ..
with
ASSAD RAZA
&
MOHSIN BASHIR

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;

namespace InventorySystem
{
    public partial class Form1 : Form
    {
        homepage home;
     
        public Form1()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            // owner
            if (radioButton1.Checked == true)
            {
                radioButton1.BackColor= Color.Transparent;
                if ((textBox1.Text == "waqeeh") && (textBox2.Text == "123"))
                {
                    home = new homepage(false);
                    home.ShowDialog();
                }
                else
                {
                    MessageBox.Show("Please enter correct  username and password");
                }
            }
            else
            {
                radioButton1.BackColor = Color.Transparent;
                if (textBox1.Text == "waqeeh" && textBox2.Text == "123")
                {
                    home = new homepage(true);
                    home.ShowDialog();
                }
                else
                {
                    MessageBox.Show(" sword");
                }
            }
        }

        private void Login_cbt2_MouseHover(object sender, EventArgs e)
        {
            //Login_cbt2.BackColor = Color.Yellow;
        }

        private void Login_cbt2_MouseLeave(object sender, EventArgs e)
        {
            //Login_cbt2.BackColor = Color.Yellow;

        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

    }
}

Screen Shot

How to make Inventory management system

How to make Inventory management system

How to make Inventory management system

How to make Inventory management system

How to make Inventory management system

Monday, 27 May 2013

How to make School Network System

How to make School Network System

In our DCN project we have made the school management system. Basically we have two campuses and one main office controlling these both campuses.one campus included departments of medical and engineering department where as other campus  have  management and computer science department. We use one server switch and two client switches and both given the names of department as we already mentioned above. In server switch we have make have make two vlans 10 &20 that names student and teacher.vlan 10 representing teacher whereas vlan 20 representing student.one pc is connected to the client as a default for sending pings to all.one pc has been connected to the client as it ACL so no other pings can go outside the network.
In main campus we have one switch connected with DHCP server. Because of this it is assigning ip’s to all the pcs .in other campus We using one server switch and two client switches and both given the names of department as we already mentioned above. In server switch we have make have make two vlans 10 &20 that names student and teacher.vlan 10 representing teacher whereas  vlan 20 representing student.one pc is connected to the client as a default for sending pings to all.one pc has been connected to the client as it ACL so no other pings can go outside the network.






How to make School Network System



How to make School Network System

How to make School Network System


How to make School Network System


How to make School Network System


How to make School Network System


Wednesday, 1 May 2013

How to make Click me game in c#

How to make Click me  game in c#

Screen Shot




how to make Click me  game in 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.Threading.Tasks;
using System.Windows.Forms;

namespace ClickMe
{
    public partial class Game : Form
    {
        public Game()
        {
            InitializeComponent();
        }

        private void button1_MouseEnter(object sender, EventArgs e)
        {
            Random r = new Random();
            int i = r.Next(0 + 100, this.Width - 100);

            Random rb = new Random();
            int j = rb.Next(0 + 100, this.Height - 100);
            button1.Location = new System.Drawing.Point(i, j);
            //button1.Text = string.Format("({0}:{1})", i, j);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Nice");
        }
    }
}

How to make mobile easy load simple software C#

How to make mobile easy load simple software C#





How to make mobile easy load simple software C#


How to make mobile easy load simple software C#


How to make mobile easy load simple software C#



How to make mobile easy load simple software C#



How to make mobile easy load simple software 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.Threading.Tasks;
using System.Windows.Forms;
using System.Text.RegularExpressions;
using System.Data.SqlClient;

namespace easyloadreg2012
{
    public partial class Delete : Form
    {
        public Delete()
        {
            InitializeComponent();
        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Regex MobileNo = new Regex("[0-9]{11}");
            bool a = MobileNo.IsMatch(textBox1.Text);
            if (a == true)
            {
                this.GetEasySearchList(textBox1.Text.ToString());
                MessageBox.Show("Deleted");
            }
            else
            {
                MessageBox.Show("Enter Correct Mobile No");
            }
        }
        void  GetEasySearchList(string MobileNo)
        {
            string connectionString = @"Data Source=ASSAD;Initial Catalog=EasyLoadDB;Integrated Security=True;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False";

            using (SqlConnection con = new SqlConnection(connectionString))
            {
                using (SqlCommand command = new SqlCommand())
                {
                    command.CommandText = string.Format(@"delete from EasyLoad where MobileNumber='{0}' ", MobileNo);
                    command.Connection = con;
                    con.Open();
                    SqlDataReader sqlDataReader = command.ExecuteReader();
                    con.Close();
                }
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void Delete_Load(object sender, EventArgs e)
        {

        }
    }
}








Sunday, 21 April 2013