c#超详细计算器代码(7)

2025-06-27

c#简易计算器源代码!

}

textBox1.Text = (num1 / num2).ToString(); break;

}

ysf = 1;

button14.Focus();

}

private void button11_Click(object sender, EventArgs e)

{

if (textBox1.Text.IndexOf(".") == -1)

{

textBox1.Text += ".";

}

button14.Focus();

}

private void button17_Click(object sender, EventArgs e)

{

textBox1.Text = "0";

}

private void button18_Click(object sender, EventArgs e)

{

textBox1.Text = textBox1.Text.Substring(0, textBox1.Text.Length - 1); if (Convert.ToDouble(textBox1.Text.Length - 1) < 0) {

textBox1.Text = "0";

}

button14.Focus();

}

private void Form1_Load(object sender, EventArgs e)

{

this.KeyPreview = true;

}

private void Form1_KeyPress(object sender, KeyPressEventArgs e)

{

switch (e.KeyChar.ToString())

{

case "1": button1_Click(sender, e); break;

case "2": button2_Click(sender, e); break;

case "3": button3_Click(sender, e); break;


c#超详细计算器代码(7).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:奇迹暖暖少女级9-支1通关攻略 S级平

相关阅读
本类排行
× 游客快捷下载通道(下载后可以自由复制和排版)

下载本文档需要支付 7

支付方式:

开通VIP包月会员 特价:29元/月

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:xuecool-com QQ:370150219