Question: The question says it all

What I tried to do was

```
if (textbox1.Text != int)
{
     MessageBox.Show ("This is not a proper number.")
}

```

I use a button to start the command.
I am new to C# so excuse such a possibly easy

Answer: 
Call [`int.TryParse()`](http://msdn.microsoft.com/en-us/library/f02979c7.aspx) and evaluate the returned result.
in this i am performing addition of no ad if i enter string then it will get concatinated

```
private void button1_Click(object sender, EventArgs e)
        {
            bool chk,chk1;
            int chkq;
            chk = int.TryParse(textBox1.Text, out chkq);
            chk1 = int.TryParse(textBox2.Text, out chkq);
            if (chk1 && chk)
            {
                MessageBox.Show("Is number");
            }
            else
            {
                MessageBox.Show("Not a number");
            }
        }

```