سلام؛
فرم زیر رو در نظر بگیرید:

DynamicIF.png

میخوام وقتی کاربر هر کدوم از جعبه ها رو خالی گذاشت، PictureBox جلوش نمایش داده بشه!
الآن با این کدی که من نوشتم اول چک میکنم اگه همه ی جعبه ها خالی بود همه ی PictureBox ها رو فعال میکنم، بعد به ترتیب از اول همه رو چک میکنم...
که این کار باعث میشه اولین جعبه ی متن خالی نمایش داده بشه!

if (txt_Username.Text == "" & txt_Password.Text == "" & txt_RepeatPassword.Text == "" & txt_PasswordReminder.Text == "" & userPrivilage_ComboBox.Text == "")
{
// Alter_PictureBox1.Visible = true; Alter_PictureBox2.Visible = true; Alter_PictureBox3.Visible = true; Alter_PictureBox4.Visible = true; Alter_PictureBox5.Visible = true;
AlterViewer(this);
}
else if (txt_Username.Text == "")
Alter_PictureBox1.Visible = true;


else if (txt_Password.Text == "")
Alter_PictureBox2.Visible = true;


else if (txt_RepeatPassword.Text == "")
Alter_PictureBox3.Visible = true;


else if (txt_PasswordReminder.Text == "")
Alter_PictureBox4.Visible = true;


else if (userPrivilage_ComboBox.Text == "")
Alter_PictureBox5.Visible = true;


else if (txt_Password.Text.Length <= 6)
{
Msg.MsgBoxAraz("گذرواژه باید بیشتر از شش کاراکتر باشد", "اخطار", MessageBoxButtons.OK, MessageBoxIcon.Warning);
txt_Password.Text = "";
txt_RepeatPassword.Text = "";
}
else
{


در واقع ساز و کاری نیاز دارم تا همه ی جعبه ها رو چک کنه هر کدوم خالی بود PictureBox جلوش فعال بشه!