Posts

Employee Management System

Image
  Login Page private void BtnLogin_Click(object sender, EventArgs e)         {             string Query = "SELECT * FROM Login WHERE UserName='" + TxtUserName.Text +                 "' AND Password='" + TxtPassword.Text + "'";             SqlConnection Conn = new SqlConnection(StrConn);             Conn.Open();             SqlCommand Cmd=new SqlCommand(Query,Conn);             SqlDataReader dr = Cmd.ExecuteReader();             while (dr.Read())             {                 // If the username and password are correct                 Home Home = new Home();                 Home.ShowDialog();   ...

Microsoft Logo with HTML & CSS

Image
<!DOCTYPE html> <html> <head>     <meta charset="utf-8" />     <title>Microsoft Logo</title>     <style>         .Logo{             width:350px;             margin:25px auto;         }         .square{             width:150px;             height:150px;             margin:0 10px 10px 0;             float:left;         }             .square.red {                 background-color: #ff0000;             }             .square.green {                 background-color: #00ff90;       ...

Media Player Using C#

Image
  using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace MediaPlayer {     public partial class Form1 : Form     {         public Form1()         {             InitializeComponent();         }         private void Form1_Load(object sender, EventArgs e)         {             listBox1.ValueMember = "Path";             listBox1.DisplayMember = "FileName";         }         private void button1_Click(object sender, EventArgs e)         {             using (OpenFileDialog ofd = new OpenFileDialog() { Multisele...