private void button1_Click(object sender, EventArgs e) { this.Close(); } private void textBox1_Leave(object sender, EventArgs e) { if (textBox1.Text == string.Empty) { MessageBox.Show("TextBox Is Empty"); textBox1.Focus(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)