private void textBox_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Tab) { e.Handled = true; } }