try
{
  int i = Convert.ToInt32( this.text.Text );
}
catch( exception ex )
{
  MessageBox.Show( "Please input number" )
}