帮帮忙看哪里错了 谢谢
using System;
using System.Collections.Generic;
using
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
string oldvalue = "";
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string newstr = textBox1.Text;
newstr = newstr + "1";
textBox1.Text = newstr;
}
private void button2_Click(object sender, EventArgs e)
{
string newstr = textBox1.Text;
newstr = newstr + "2";
textBox1.Text = newstr;
}
private void button3_Click(object sender, EventArgs e)
{
string newstr = textBox1.Text;
newstr = newstr + "3";
textBox1.Text = newstr;
}
private void button4_Click(object sender, EventArgs e)
{
string newstr = textBox1.Text;
newstr = newstr + "4";
textBox1.Text = newstr;
}
private void button5_Click(object sender, EventArgs e)
{
string newstr = textBox1.Text;
newstr = newstr + "5";
textBox1.Text = newstr;
}
private void button6_Click(object sender, EventArgs e)
{
string newstr = textBox1.Text;
newstr = newstr + "6";
textBox1.Text = newstr;
}
private void button7_Click(object sender, EventArgs e)
{
string newstr = textBox1.Text;
newstr = newstr + "7";
textBox1.Text = newstr;
}
private void button8_Click(object sender, EventArgs e)
{
string newstr = textBox1.Text;
newstr = newstr + "8";
textBox1.Text = newstr;
}
private void button9_Click(object sender, EventArgs e)
{
string newstr = textBox1.Text;
newstr = newstr + "9";
textBox1.Text = newstr;
}
private void button10_Click(object sender, EventArgs e)
{
string newstr = textBox1.Text;
newstr = newstr + "0";
textBox1.Text = newstr;
}
private void button12_Click(object sender, EventArgs e)
{
oldvalue = textBox1.Text;
textBox1.Text = "";
}
private void button11_Click(object sender, EventArgs e)
{
string newvalue = textBox1.Text;
int v = 0;
v = int.Parse(oldvalue) + int.Parse(newvalue);
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
}
}