c#简易计算器源代码!
{
if (textBox1.Text == "0" || flag == 1)
{
textBox1.Text = "5"; flag = 0;
}
else
{ textBox1.Text = textBox1.Text + "5"; }
button16.Focus();
}
private void button6_Click(object sender, EventArgs e)
{
if (textBox1.Text == "0" || flag == 1)
{
textBox1.Text = "6"; flag = 0;
}
else
{ textBox1.Text = textBox1.Text + "6"; }
button16.Focus();
}
private void button7_Click(object sender, EventArgs e)
{
if (textBox1.Text == "0" || flag == 1)
{
textBox1.Text = "7"; flag = 0;
}
else
{ textBox1.Text = textBox1.Text + "7"; }
button16.Focus();
}
private void button8_Click(object sender, EventArgs e)
{
if (textBox1.Text == "0" || flag == 1)
{
textBox1.Text = "8"; flag = 0;
}
else
{ textBox1.Text = textBox1.Text + "8"; }
button16.Focus();
}
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库c#超详细计算器代码(3)在线全文阅读。
相关推荐: