C # follow the content in the edit box on the qq logon page,
Using System;
Using System. Drawing;
Using System. Windows. Forms;
Namespace Case Study
{
Public partial class frmlogo: Form
{
Public frmlogo ()
{
InitializeComponent ();
}
Int usi, pwi;
Private void frmlogo_Load (object sender, EventArgs e)
{
}
Private void textbox#mousedown (object sender, MouseEventArgs e)
{
Usi ++;
If (usi = 1)
{
TextBox1.Text = "";
}
If (textBox2.Text = "")
{
Pwi = 0;
TextBox2.Text = "password ";
}
}
Private void textBox2_MouseDown (object sender, MouseEventArgs e)
{
Pwi ++;
If (textBox1.Text = "")
{
TextBox1.Text = "User Name ";
Usi = 0;
}
If (pwi = 1)
{
TextBox2.Text = "";
}
}
Private void textBox1_KeyDown (object sender, KeyEventArgs e)
{
TextBox1.ForeColor = Color. Black;
}
Private void textBox2_KeyDown (object sender, KeyEventArgs e)
{
TextBox2.ForeColor = Color. Black;
}
Private void button#click (object sender, EventArgs e)
{
}
}
}
2017-09-02