Champ obligatoire pour la validation de zone de texte

          try
        {
            Connections.con.Open();
            string str = "INSERT INTO `Employee` (`FirstName`, `LastName`, `DOB`, `ContactNumber`, `Username`, `Password`) VALUES (?, ?, ?, ?, ?, ?)";
            OleDbCommand cmd = new OleDbCommand(str, Connections.con);
            cmd.Parameters.AddWithValue("@?", txtFirst.Text.ToString());
            cmd.Parameters.AddWithValue("@?", txtLast.Text.ToString());
            cmd.Parameters.AddWithValue("@?", txtDOB.Text.ToString());
            cmd.Parameters.AddWithValue("@?", txtCon.Text.ToString());
            cmd.Parameters.AddWithValue("@?", txtUser.Text.ToString());
            cmd.Parameters.AddWithValue("@?", txtPass.Text.ToString());


            cmd.ExecuteNonQuery();

            MessageBox.Show("Registration Successful");
        }
        catch (Exception ex)
        {
            MessageBox.Show("Username Exists.");
        }
        finally
        {

            Connections.con.Close();
            this.Dispose();
            this.Close();
            f1.Show();
        }

Je ne peux pas trouver un moyen que le formulaire affiche un message qui dit s'il vous Plaît remplir le champ vide..
chaque fois que l'utilisateur a oublié de remplir la zone de texte

InformationsquelleAutor Joey Eguna | 2014-10-05