This week's software process

Source: Internet
Author: User

U

}
}
}

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 app
{
public partial class Form1:form
{
Public Form1 ()
{
InitializeComponent ();
}

private void Button1_Click (object sender, EventArgs e)
{
Form2 FR = new Form2 ();
Fr. Show ();

This. Hide ();
}

private void Form1_Load (object sender, EventArgs e)
{

}

private void Button3_Click (object sender, EventArgs e)
{
This. Close ();
}

private void Button2_Click (object sender, EventArgs e)
{


Button2. Enabled = false;

}
}
}

Sing 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 app
{
public partial class Form2:form
{
Public Form2 ()
{
InitializeComponent ();
}

private void Button1_Click (object sender, EventArgs e)
{
This. Close ();
Form1 r = new Form1 ();
R.show ();
}

private void Form2_load (object sender, EventArgs e)
{
textbox3.enabled = false;
Button2. Enabled = false;
}

private void textBox1_TextChanged (object sender, EventArgs e)
{
if (textbox1.text== "")
{
Button2. Enabled = false;
}

}

private void Button3_Click (object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
Button2. Enabled = false;
}

private void Button2_Click (object sender, EventArgs e)
{
TextBox3.Text = "Match result:" +textbox1.text + ":" + TextBox2.Text + "=26:24" +textbox1.text + ": Victory" +textbox2. Text + ": Cherish defeat";
}

private void Textbox2_textchanged (object sender, EventArgs e)
{
if (TextBox1.Text! = "" &&textbox2.text! = "")
{
Button2. Enabled = true;
}
Else
{
Button2. Enabled = false;
}

This week's software process

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.