Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create control array programatically in VB.NET?
Message
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00959620
Message ID:
00960033
Views:
9
>Dear The Expert,
>
>How to create control array programatically in VB.NET? ..(ie. for some conditions, my app. needs to create 15 textboxes ).. how to deal with this? ..
>
>thanks a lot in advance
>
>Regards
>Winanjaya

You could use Microsoft.VisualBasic.Compatibility.VB6.TextBoxArray.

NOTE: Using the classes in the Microsoft.VisualBasic.Compatibility namespace is not recommended (they are only meant to be used by the upgrade wizard) but I thought you should at least know this option exists.

The easiest way to see how to use the TextBoxArray class is to create a simple VB 6.0 app that has a array of textboxes and then run the project through the upgrade wizard.
---
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
http://www.msmvps.com/windsor
http://www.g6consulting.com
Previous
Reply
Map
View

Click here to load this message in the networking platform