Warcraft login page, login page

Source: Internet
Author: User

Warcraft login page, login page

 

1 using System; 2 using System. collections. generic; 3 using System. componentModel; 4 using System. data; 5 using System. drawing; 6 using System. linq; 7 using System. text; 8 using System. threading. tasks; 9 using System. windows. forms; 10 11 namespace Loging12 {13 public partial class Form2: Form14 {15 public string mile; 16 public string pwd; 17 public Form2 () 18 {19 InitializeComponent (); 20} 21 22 priva Te void Form2_Load (object sender, EventArgs e) 23 {24 25} 26 27 private void button#click (object sender, EventArgs e) 28 {29 Form3 f3 = new Form3 (); 30 31 if (textBox1.Text = "" | textBox2.Text = "") {32 MessageBox. show ("the user name or password cannot be blank! "," Prompt "); 33} 34 else if (textBox1.Text = mile & textBox2.Text = pwd) 35 {36 37 Form1 f1 = new Form1 (); 38 f1.Show (); 39} 40 41} 42 43 private void picturebox#click (object sender, EventArgs e) 44 {45 this. close (); 46} 47 48 private void label4_Click (object sender, EventArgs e) 49 {50 Form3 f3 = new Form3 (); 51 f3.Show (); 52} 53} 54}
Second piece of code
Using System; 2 using System. collections. generic; 3 using System. componentModel; 4 using System. data; 5 using System. drawing; 6 using System. linq; 7 using System. text; 8 using System. threading. tasks; 9 using System. windows. forms; 10 11 namespace Loging12 {13 public partial class Form3: Form14 {15 16 public Form3 () 17 {18 InitializeComponent (); 19} 20 public static string mile; 21 public static string pwd; 22 private void lbls_Click (object sender, EventArgs e) 23 {24 25} 26 27 private void lblpwd_Click (object sender, EventArgs e) 28 {29 30} 31 32 private void button#click (object sender, EventArgs e) 33 {34 if (textBox1.Text = ") 35 {36 MessageBox. show ("name cannot be blank", "prompt"); 37 38} 39 else if (textBox3.Text = "") {40 MessageBox. show ("ID card number cannot be blank", "prompt"); 41} 42 else if (textBox2.Text = "") {43 44 MessageBox. show ("email address cannot be blank", "prompt"); 45} 46 else if (textBox4.Text = "") 47 {48 MessageBox. show ("password cannot be blank", "prompt"); 49} 50 else if (textBox5.Text = "") {51 MessageBox. show ("Enter your mailbox again", "prompt"); 52} 53 else if (textBox6.Text = "") 54 {55 MessageBox. show ("Enter password again", "prompt"); 56} 57 else {58 59 MessageBox. show ("registration successful", "prompt"); 60 61 Form2 f2 = new Form2 (); 62 f2.mile = textBox2.Text; 63 f2.pwd = textBox4.Text; 64 f2.Show (); 65} 66} 67 68 private void button2_Click (object sender, EventArgs e) 69 {70 this. close (); 71} 72 73 private void Form3_Load (object sender, EventArgs e) 74 {75 76} 77 78} 79}
 

 

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 Loging{    public partial class Form1 : Form    {        public Form1()        {            InitializeComponent();        }        private void Form1_Load(object sender, EventArgs e)        {        }    }}

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.