lyvenice 0 Newbie Poster

THis is what i did

 if 
 (txtName.Text == "")
{
 MessageBox.Show(
                    "All Field must be Fill in!!!","Missing Information", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else

what do i write on the if, to stop the button from executing the label action since information is missing?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.