C#编写的windows计算器-源代码(1)
选择自 CSPRO 的 Blog using System;using System.Drawing;using System.Windows;using System.Windows.Forms;using System.Collections;using System.ComponentModel;using System.Data;
namespace comput{ /// <summary> /// 这是一个计算器的简单实现。 /// </summary>
public class Form1 : System.Windows.Forms.Form { #region 控件声明 private System.Windows.Forms.TextBox txtShow; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.Button btn_rev; private System.Windows.Forms.Button btn_dot; private System.Windows.Forms.Button btn_add; private System.Windows.Forms.Button btn_equ; private System.Windows.Forms.Button btn_sign; private System.Windows.Forms.Button btn_sub; private System.Windows.Forms.Button btn_mul; private System.Windows.Forms.Button btn_0; private System.Windows.Forms.Button btn_3; private System.Windows.Forms.Button btn_2; private System.Windows.Forms.Button btn_1; private System.Windows.Forms.Button btn_6; private System.Windows.Forms.Button btn_5; private System.Windows.Forms.Button btn_4;