I'm trying to follow along with a tutorial I found.

http://www.dreamincode.net/forums/to...lator-in-c%23/

I keep getting an error:

"Warning 1 The designer could not be shown for this file because none of the classes within it can be designed. The designer inspected the following classes in the file:

frmCalculator --- The base class 'System.Object' cannot be designed. 0 0
"

This is my code (FYI, i've only done code for numbers 1-3):

"
//variables to hold operands
private double valHolder1;
private double valHolder2;
//Varible to hold temporary values
private double tmpValue;
//True if "." is use else false
private bool hasDecimal = false;
private bool inputStatus = true;
//variable to hold Operater
private string calcFunc;
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;
using System.Object;

namespace Calculator
{
public partial class frmCalculator : Form
{
public frmCalculator()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)
{

}

private void btn1_Click(object sender, EventArgs e)
{
//Check the inputStatus
if (inputStatus)
{
//Its True
//Append values to the value
//in the input box
txtInput.Text += btn1.Text;
}
else
{
//Value is False
//Set the value to the value of the button
txtInput.Text = btn1.Text;
//Toggle inputStatus to True
inputStatus = true;
}

}

private void button2_Click(object sender, EventArgs e)
{
//Check the inputStatus
if (inputStatus)
{
//Its True
//Append values to the value
//in the input box
txtInput.Text += btn2.Text;
}
else
{
//Value is False
//Set the value to the value of the button
txtInput.Text = btn2.Text;
//Toggle inputStatus to True
inputStatus = true;
}

}

private void btn3_Click(object sender, EventArgs e)
{
//Check the inputStatus
if (inputStatus)
{
//Its True
//Append values to the value
//in the input box
txtInput.Text += btn3.Text;
}
else
{
//Value is False
//Set the value to the value of the button
txtInput.Text = btn3.Text;
//Toggle inputStatus to True
inputStatus = true;
}

}
}
}
"


I'm not sure how to handle this. Originally I did not have "using System.Object;" but I saw the error referencing it and I added it hoping that would resolve the issue. Obviously it did not so I could use some suggestions.

Let me know if there's anything I can do to make troubleshooting this easier on all of us.

Thanks!