|
-
Aug 2nd, 2004, 01:17 PM
#1
Thread Starter
Fanatic Member
VB6 code translation...
Hello, In VB6 I had a collection of textboxes which I could iterate through with For Each....
Control names were txtFactor .....and indexed like this..
txtFactor(0)
txtFactor(1)
txtFactor(2)
etc....
In VB6:
Dim txtTemp as textbox
For Each txtTemp In txtFactor
txtTemp.Enabled = False
Next txtTemp
which basically does this......in VB.NET after renaming the controls.
txtFactor0.Enabled = False
txtFactor1.Enabled = False
txtFactor1.Enabled = False
txtFactor2.Enabled = False
txtFactor3.Enabled = False
txtFactor4.Enabled = False
txtFactor5.Enabled = False
What VB.NET equivalent can I use?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|