//following code will accept only numeric with Spaces
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
e.Handled = !char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar)&& !(e.KeyChar == ' ') ;
}
//following code will accept only char's with sapces
private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
e.Handled = !char.IsLetter(e.KeyChar) && !char.IsControl(e.KeyChar)&& !(e.KeyChar == ' ') ;
}