Does anyone know a way to iterate through the textboxes on a form using a For...Each statement or something? eVB is different than VB, its the one for Windows CE...
I haven't used eVB so I'm not sure what objects it supports. If like VB it uses a Form object with a Controls collection as its property then you would use something like this:
Dim objControl As Control
For Each objControl in Me.Controls
If objControl Is TextBox then
'Do what you want to do
End if
Next
Negative, ghostwriter. I tried that, frmMain.Controls, etc... A lot of VB doesn't work the same in eVB. For example, you can only use the "Left(string, length)" inside a code module, not a form.
Thanks though. I gave up and did txt1.backcolor=0, txt2.backcolor=0, etc...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.