Code alert for empty entry on the system in C#


The code below altes the user when leaves the field empty

if (at.Text == "")
            {
                MessageBox.Show("Please select user type", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                at.Focus();
                return;
            }
Note this will be placed in the button and should be the first code


Related Posts
Previous
« Prev Post

Contact Form

Name

Email *

Message *