用C#2005做计算器界面
来源:百度知道 编辑:UC知道 时间:2024/06/02 04:47:02
只是界面的话,还是比较简单的,首先你创建一个c#windows程序,然后从工具箱里边直接拖出一个text控件和若干个button,然后右击--属性,改一下对应的text属性和其他属性就行了,最好是分到2个panel里边,这样比较容易控制
自己做吧 别什么都在网上找源代码。。 自己锻炼对自己有好处。又不懂的问题可以提出来 不要动不动的就问源码。
使劲拖放控件就可以了,注意布局,及命名,这样会方便编写代码
?????
你要怎么做?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace huangxin
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private double firstnumb = 0;
private double secondnumb = 0;
private string sign;
private string count;
private void btn_0_Click(object sender, EventArgs e)
{
count += 0;
textBox1.Text = count;
}
private void btn_1_