if (txtDeathFirstName.Text.Length == 0 && e.KeyChar == ' ') { e.Handled = true; } else { e.Handled = false; }
protected override void OnPreviewKeyDown(KeyEventArgs e) { e.Handled = e.Key == Key.Space; base.OnPreviewKeyDown(e); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)