请高手大大帮帮忙
//这是个简单的计算器程序,但我编到后面时却出错了,拜托各位高手大大帮帮忙...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Counter
{
public partial class limiting : Form
{
public limiting()
{
InitializeComponent();
}
private void count_Click(object sender, EventArgs e)
{
Single a, b, result = 0;
a = Convert.ToSingle(num1.Text);
b = Convert.ToSingle(num2.Text);
switch (sign.SelectedItem.ToString())
{
case "+": result = a + b; break;
case "-": result = a - b; break;
case "*": result = a * b; break;
case "/": result = a / b; break;
}
Convert.ToSingle(result.Text);//这不知道是出了什么问题~我总是找不出来~!
}
}
}