码迷,mamicode.com
首页 > 其他好文 > 详细

观众查询界面

时间:2016-12-25 01:40:04      阅读:193      评论:0      收藏:0      [点我收藏+]

标签:.sh   ini   img   cli   ges   比赛   ima   images   blog   

技术分享

namespace 排球计分程序
{
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}

private void Form3_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 button2_Click(object sender, EventArgs e)
{
textBox3.Text = "比赛结果为:" + textBox1.Text + ":" + textBox2.Text + "=25:24 " + textBox1.Text + "胜利" + textBox2.Text + "惜败";
}

private void button3_Click(object sender, EventArgs e)
{
textBox1.Text = "";
textBox2.Text = "";
textBox3.Text = "";
button2.Enabled = false;
}

private void textBox2_TextChanged(object sender, EventArgs e)
{
if (textBox1.Text != "" && textBox2.Text != "")
{
button2.Enabled = true;
}
else
{
button2.Enabled = false;
}
}

private void textBox3_TextChanged(object sender, EventArgs e)
{

}

private void button1_Click(object sender, EventArgs e)
{
this.Close();
首页 s = new 首页();
s.Show();
}
}

 

观众查询界面

标签:.sh   ini   img   cli   ges   比赛   ima   images   blog   

原文地址:http://www.cnblogs.com/9288yalan/p/6218672.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!