maybe parse was the wrong word to use in this case. basically when i use this piece of code it appears to start going through the controls in reverse order. there is a button and several text boxs that need checking and using the following seems to start at the button and work up the form.
Code:
Control.ControlCollection ctrls = this.Controls;
foreach (Control ctrl in ctrls)
{
if (ctrl.GetType() == typeof(TextBox) && ctrl.Text == "")
{
MessageBox.Show("Please complete all Information required!");
ctrl.Focus();
return;
}
}
not a major problem but would prefer to go down the page in a ogical order for unfilled textboxs.