欢迎来到淘文阁 - 分享文档赚钱的网站! | 帮助中心 好文档才是您的得力助手!
淘文阁 - 分享文档赚钱的网站
全部分类
  • 研究报告>
  • 管理文献>
  • 标准材料>
  • 技术资料>
  • 教育专区>
  • 应用文书>
  • 生活休闲>
  • 考试试题>
  • pptx模板>
  • 工商注册>
  • 期刊短文>
  • 图片设计>
  • ImageVerifierCode 换一换

    2022年2022年计算器源代码 .pdf

    • 资源ID:27245441       资源大小:119.67KB        全文页数:21页
    • 资源格式: PDF        下载积分:4.3金币
    快捷下载 游客一键下载
    会员登录下载
    微信登录下载
    三方登录下载: 微信开放平台登录   QQ登录  
    二维码
    微信扫一扫登录
    下载资源需要4.3金币
    邮箱/手机:
    温馨提示:
    快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    2022年2022年计算器源代码 .pdf

    C#编写的 windows 计算器文章录入: 7747.Net 责任编辑: 7747.Net 更新时间: 2006-7-14 6:59:40 650 【字体:小大】using System; using System.Drawing; using System.Windows; using System.Windows.Forms; using System.Collections; using System.ComponentModel; using System.Data; namespace comput / / 这是一个计算器的简单实现。/ 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; private System.Windows.Forms.Button btn_sqrt; private System.Windows.Forms.Button btn_div; private System.Windows.Forms.Button btn_7; private System.Windows.Forms.Button btn_8; 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 21 页 - - - - - - - - - private System.Windows.Forms.Button btn_9; private System.Windows.Forms.MainMenu mainMenu1; private System.Windows.Forms.MenuItem menuItem1; private System.Windows.Forms.Button btn_sqr; private System.Windows.Forms.MenuItem menuItem2; private System.Windows.Forms.MenuItem menuItem3; private System.Windows.Forms.MenuItem menuItem4; private System.Windows.Forms.MenuItem menuItem5; private System.Windows.Forms.MenuItem menuItem6; private System.Windows.Forms.Button c; private System.Windows.Forms.Button ce; private System.Windows.Forms.MenuItem menuItem8; private System.Windows.Forms.MenuItem menuItem9; private System.Windows.Forms.MenuItem menuItem10; / / 必需的设计器变量。/ private System.ComponentModel.Container components = null; public Form1() / / Windows 窗体设计器支持所必需的/ InitializeComponent(); / / TODO: 在 InitializeComponent 调用后添加任何构造函数代码/ / / 清理所有正在使用的资源。/ protected override void Dispose( bool disposing ) if( disposing ) if (components != null) components.Dispose(); 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 21 页 - - - - - - - - - base.Dispose( disposing ); #endregion #region 各控件的属性的方法Windows Form Designer generated code / / 设计器支持所需的方法- 不要使用代码编辑器修改/ 此方法的内容。/ private void InitializeComponent() System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1); this.txtShow = new System.Windows.Forms.TextBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.c = new System.Windows.Forms.Button(); this.ce = new System.Windows.Forms.Button(); this.btn_rev = new System.Windows.Forms.Button(); this.btn_dot = new System.Windows.Forms.Button(); this.btn_add = new System.Windows.Forms.Button(); this.btn_equ = new System.Windows.Forms.Button(); this.btn_sign = new System.Windows.Forms.Button(); this.btn_sub = new System.Windows.Forms.Button(); this.btn_mul = new System.Windows.Forms.Button(); this.btn_0 = new System.Windows.Forms.Button(); this.btn_3 = new System.Windows.Forms.Button(); this.btn_2 = new System.Windows.Forms.Button(); this.btn_1 = new System.Windows.Forms.Button(); this.btn_6 = new System.Windows.Forms.Button(); this.btn_5 = new System.Windows.Forms.Button(); this.btn_4 = new System.Windows.Forms.Button(); this.btn_sqrt = new System.Windows.Forms.Button(); this.btn_div = new System.Windows.Forms.Button(); this.btn_7 = new System.Windows.Forms.Button(); this.btn_8 = new System.Windows.Forms.Button(); this.btn_9 = new System.Windows.Forms.Button(); this.btn_sqr = new System.Windows.Forms.Button(); this.mainMenu1 = new System.Windows.Forms.MainMenu(); this.menuItem1 = new System.Windows.Forms.MenuItem(); this.menuItem2 = new System.Windows.Forms.MenuItem(); this.menuItem3 = new System.Windows.Forms.MenuItem(); this.menuItem4 = new System.Windows.Forms.MenuItem(); 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 21 页 - - - - - - - - - this.menuItem5 = new System.Windows.Forms.MenuItem(); this.menuItem6 = new System.Windows.Forms.MenuItem(); this.menuItem8 = new System.Windows.Forms.MenuItem(); this.menuItem9 = new System.Windows.Forms.MenuItem(); this.menuItem10 = new System.Windows.Forms.MenuItem(); this.groupBox1.SuspendLayout(); this.SuspendLayout(); / / txtShow / this.txtShow.BackColor = System.Drawing.Color.FromArgb(System.Byte)(192), (System.Byte)(192), (System.Byte)(255); this.txtShow.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.txtShow.ForeColor = System.Drawing.Color.Purple; this.txtShow.Location = new System.Drawing.Point(25, 8); this.txtShow.Name = txtShow; this.txtShow.Size = new System.Drawing.Size(228, 23); this.txtShow.TabIndex = 1; this.txtShow.Text = 0.; this.txtShow.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; / / groupBox1 / this.groupBox1.Controls.Add(this.c); this.groupBox1.Controls.Add(this.ce); this.groupBox1.Controls.Add(this.btn_rev); this.groupBox1.Controls.Add(this.btn_dot); this.groupBox1.Controls.Add(this.btn_add); this.groupBox1.Controls.Add(this.btn_equ); this.groupBox1.Controls.Add(this.btn_sign); this.groupBox1.Controls.Add(this.btn_sub); this.groupBox1.Controls.Add(this.btn_mul); this.groupBox1.Controls.Add(this.btn_0); this.groupBox1.Controls.Add(this.btn_3); this.groupBox1.Controls.Add(this.btn_2); this.groupBox1.Controls.Add(this.btn_1); this.groupBox1.Controls.Add(this.btn_6); this.groupBox1.Controls.Add(this.btn_5); this.groupBox1.Controls.Add(this.btn_4); this.groupBox1.Controls.Add(this.btn_sqrt); this.groupBox1.Controls.Add(this.btn_div); this.groupBox1.Controls.Add(this.btn_7); this.groupBox1.Controls.Add(this.btn_8); 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 4 页,共 21 页 - - - - - - - - - this.groupBox1.Controls.Add(this.btn_9); this.groupBox1.Controls.Add(this.btn_sqr); this.groupBox1.Location = new System.Drawing.Point(24, 40); this.groupBox1.Name = groupBox1; this.groupBox1.Size = new System.Drawing.Size(232, 184); this.groupBox1.TabIndex = 21; this.groupBox1.TabStop = false; this.groupBox1.Text = 计算机区 ; / / c / this.c.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.c.ForeColor = System.Drawing.Color.Red; this.c.Location = new System.Drawing.Point(178, 48); this.c.Name = c; this.c.Size = new System.Drawing.Size(36, 61); this.c.TabIndex = 41; this.c.Text = C; this.c.Click += new System.EventHandler(this.btn_Oper); / / ce / this.ce.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.ce.ForeColor = System.Drawing.Color.Red; this.ce.Location = new System.Drawing.Point(138, 16); this.ce.Name = ce; this.ce.Size = new System.Drawing.Size(76, 29); this.ce.TabIndex = 40; this.ce.Text = CE; this.ce.Click += new System.EventHandler(this.btn_Oper); / / btn_rev / this.btn_rev.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.btn_rev.ForeColor = System.Drawing.Color.Blue; this.btn_rev.Location = new System.Drawing.Point(178, 112); this.btn_rev.Name = btn_rev; this.btn_rev.Size = new System.Drawing.Size(36, 29); this.btn_rev.TabIndex = 39; this.btn_rev.Text = 1/x; this.btn_rev.Click += new System.EventHandler(this.btn_Oper); 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 5 页,共 21 页 - - - - - - - - - / / btn_dot / this.btn_dot.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.btn_dot.Location = new System.Drawing.Point(98, 144); this.btn_dot.Name = btn_dot; this.btn_dot.Size = new System.Drawing.Size(36, 29); this.btn_dot.TabIndex = 38; this.btn_dot.Tag = 0; this.btn_dot.Text = .; 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; 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 6 页,共 21 页 - - - - - - - - - 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); / / btn_mul / this.btn_mul.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.btn_mul.ForeColor = System.Drawing.Color.Red; this.btn_mul.Location = new System.Drawing.Point(138, 80); this.btn_mul.Name = btn_mul; this.btn_mul.Size = new System.Drawing.Size(36, 29); this.btn_mul.TabIndex = 33; this.btn_mul.Text = *; this.btn_mul.Click += new System.EventHandler(this.btn_Oper); / / btn_0 / this.btn_0.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.btn_0.ForeColor = System.Drawing.Color.Blue; this.btn_0.Location = new System.Drawing.Point(18, 144); this.btn_0.Name = btn_0; this.btn_0.Size = new System.Drawing.Size(36, 29); this.btn_0.TabIndex = 32; this.btn_0.Tag = 0; this.btn_0.Text = 0; this.btn_0.Click += new System.EventHandler(this.btn_0_Click); / / btn_3 / 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 7 页,共 21 页 - - - - - - - - - this.btn_3.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.btn_3.ForeColor = System.Drawing.Color.Blue; this.btn_3.Location = new System.Drawing.Point(98, 112); this.btn_3.Name = btn_3; this.btn_3.Size = new System.Drawing.Size(36, 29); this.btn_3.TabIndex = 31; this.btn_3.Tag = 3; this.btn_3.Text = 3; this.btn_3.Click += new System.EventHandler(this.btn_0_Click); / / btn_2 / this.btn_2.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.btn_2.ForeColor = System.Drawing.Color.Blue; this.btn_2.Location = new System.Drawing.Point(58, 112); this.btn_2.Name = btn_2; this.btn_2.Size = new System.Drawing.Size(36, 29); this.btn_2.TabIndex = 30; this.btn_2.Tag = 2; this.btn_2.Text = 2; this.btn_2.Click += new System.EventHandler(this.btn_0_Click); / / btn_1 / this.btn_1.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.btn_1.ForeColor = System.Drawing.Color.Blue; this.btn_1.Location = new System.Drawing.Point(18, 112); this.btn_1.Name = btn_1; this.btn_1.Size = new System.Drawing.Size(36, 29); this.btn_1.TabIndex = 29; this.btn_1.Tag = 1; this.btn_1.Text = 1; this.btn_1.Click += new System.EventHandler(this.btn_0_Click); / / btn_6 / this.btn_6.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.btn_6.ForeColor = System.Drawing.Color.Blue; this.btn_6.Location = new System.Drawing.Point(98, 80); this.btn_6.Name = btn_6; 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 8 页,共 21 页 - - - - - - - - - this.btn_6.Size = new System.Drawing.Size(36, 29); this.btn_6.TabIndex = 28; this.btn_6.Tag = 6; this.btn_6.Text = 6; this.btn_6.Click += new System.EventHandler(this.btn_0_Click); / / btn_5 / this.btn_5.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.btn_5.ForeColor = System.Drawing.Color.Blue; this.btn_5.Location = new System.Drawing.Point(58, 80); this.btn_5.Name = btn_5; this.btn_5.Size = new System.Drawing.Size(36, 29); this.btn_5.TabIndex = 27; this.btn_5.Tag = 5; this.btn_5.Text = 5; this.btn_5.Click += new System.EventHandler(this.btn_0_Click); / / btn_4 / this.btn_4.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.btn_4.ForeColor = System.Drawing.Color.Blue; this.btn_4.Location = new System.Drawing.Point(18, 80); this.btn_4.Name = btn_4; this.btn_4.Size = new System.Drawing.Size(36, 29); this.btn_4.TabIndex = 26; this.btn_4.Tag = 4; this.btn_4.Text = 4; this.btn_4.Click += new System.EventHandler(this.btn_0_Click); / / btn_sqrt / this.btn_sqrt.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.btn_sqrt.ForeColor = System.Drawing.Color.Blue; this.btn_sqrt.Location = new System.Drawing.Point(18, 16); this.btn_sqrt.Name = btn_sqrt; this.btn_sqrt.Size = new System.Drawing.Size(76, 29); this.btn_sqrt.TabIndex = 25; this.btn_sqrt.Text = sqrt; this.btn_sqrt.Click += new System.EventHandler(this.btn_Oper); / 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 9 页,共 21 页 - - - - - - - - - / btn_div / this.btn_div.Font = new System.Drawing.Font(宋体, 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (System.Byte)(134); this.btn_div.ForeColor = System.Drawing.Color.Red; this.btn_div.Location = new System.Drawing.Point(138, 48); this.btn_div.N

    注意事项

    本文(2022年2022年计算器源代码 .pdf)为本站会员(Che****ry)主动上传,淘文阁 - 分享文档赚钱的网站仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知淘文阁 - 分享文档赚钱的网站(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于淘文阁 - 版权申诉 - 用户使用规则 - 积分规则 - 联系我们

    本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

    工信部备案号:黑ICP备15003705号 © 2020-2023 www.taowenge.com 淘文阁 

    收起
    展开