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