C#编写的windows计算器-源代码this.btn_dot.Click += new System.EventHandler(this.btn_Oper); // // btn_add // this.btn_add.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); this.btn_add.ForeColor = System.Drawing.Color.Red; this.btn_add.Location = new System.Drawing.Point(138, 144); this.btn_add.Name = "btn_add"; this.btn_add.Size = new System.Drawing.Size(36, 29); this.btn_add.TabIndex = 37; this.btn_add.Text = "+"; this.btn_add.Click += new System.EventHandler(this.btn_Oper); // // btn_equ // this.btn_equ.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); this.btn_equ.ForeColor = System.Drawing.Color.Red; this.btn_equ.Location = new System.Drawing.Point(178, 144); this.btn_equ.Name = "btn_equ"; this.btn_equ.Size = new System.Drawing.Size(36, 29); this.btn_equ.TabIndex = 36; this.btn_equ.Text = "="; this.btn_equ.Click += new System.EventHandler(this.btn_equ_Click); // // btn_sign // this.btn_sign.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); this.btn_sign.ForeColor = System.Drawing.Color.Blue; this.btn_sign.Location = new System.Drawing.Point(58, 144); this.btn_sign.Name = "btn_sign"; this.btn_sign.Size = new System.Drawing.Size(36, 29); this.btn_sign.TabIndex = 35; this.btn_sign.Text = "+/-"; this.btn_sign.Click += new System.EventHandler(this.btn_Oper); // // btn_sub // this.btn_sub.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134))); this.btn_sub.ForeColor = System.Drawing.Color.Red; this.btn_sub.Location = new System.Drawing.Point(138, 112); this.btn_sub.Name = "btn_sub"; this.btn_sub.Size = new System.Drawing.Size(36, 29); this.btn_sub.TabIndex = 34; this.btn_sub.Text = "-"; this.btn_sub.Click += new System.EventHandler(this.btn_Oper); 上一篇:C#中实现DataGrid双向排序 下一篇:用C#生成中文汉字验证码的基本原理 更多相关文章
|
推荐文章
精彩文章
|