the problem with the code is that because you have <iostream> and not <iostream.h>. <iostream> is a shorthand which only works if you say you are using the standard namespace (which allows shorthand re-naming) ie using namespace std; sorry had to clarify that :)
the problem is the conflict with <iostream> (no.h) and <stdlib.h> (a .h) which means the compiler cannot second guess the namespace for you, i think...?
Dave Sinkula --> could you have a look at c/c++ tutorials post "namespaces" as i have a post question in there about namespaces as there is something i am confused about and u seem to know a bit about it. cheers :)
works. Just a reminder, system("PAUSE") activates the old DOS command PAUSE and is not very portable code. There is also a school of thought that claims that namespace std clutters things up for other potential namespaces.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...