Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. {
  2. bool isSolved = true; //Solve Variable
  3. foreach (TextBox tb in this.Controls.OfType<TextBox>()) //Iterates through all textboxes
  4. {
  5. if (tb.Text == null) //Checks to see if one of them is null
  6. {
  7. isSolved = false; //Sets bool to false
  8. }
  9. }
  10. return isSolved; //Returns bool
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement