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 WindowsFormsApplication1
{
public
partial class Login : Form
{
public
Login()
{
InitializeComponent();
}
private
void btnlogin_Click(object
sender, EventArgs e)
{
if
(txtuname.Text == "abc" &&
txtpwd.Text == "abc")
{
MessageBox.Show("Login
Succeed");
}
else
{
MessageBox.Show("Login
failed");
}
}
private
void btncancel_Click(object
sender, EventArgs e)
{
txtpwd.Text = "";
txtuname.Text = "";
}
}
}
No comments:
Post a Comment