Code:
if (this.Controls.OfType<TextBox>().Any(f => string.IsNullOrEmpty(f.Text)))
{
MessageBox.Show("É necessario preencher todos os campos.", "Atenção", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
This command was very useful for me, but I have only 1 text not to fill
Ex. Registration Code
This text box will not be populated by the user, would it have some command to leave it out?