M.Kさん //e.Cancel = value; textBox1.Focus(); で、どうでしょうか? でも、私なら各テキストボックスに同じValidatingイベントハンドラ割り当てます。 private void textBox123_Validating(object sender, CancelEventArgs e) { if (((TextBox)sender).Text == "") { MessageBox.Show("未入力です"); e.Cancel = true; } }
- Child Tree -