I have a form with lots of contols. I'd need to do some data checking before I take the data to datatable. For example, I need to check all the textboxes in the form to see whether they are empty or not.
I can get to some of the textboxes, but I can't get to the textboxes that are inside a groupbox. Therefore i would need a recursive function to loop all the controls.
Of course, I could write tons of code to check all the textboxes, but a simple recursive function would be better since there are many txtboxes.
Any ideas?
I can get to some of the textboxes, but I can't get to the textboxes that are inside a groupbox. Therefore i would need a recursive function to loop all the controls.
Of course, I could write tons of code to check all the textboxes, but a simple recursive function would be better since there are many txtboxes.
Any ideas?