|
-
Nov 21st, 2007, 11:41 AM
#1
Thread Starter
Member
control array
is it possible to creat a dynamic control array
-
Nov 21st, 2007, 12:05 PM
#2
Thread Starter
Member
Re: control array
Please any expert Help me
-
Nov 21st, 2007, 01:14 PM
#3
Re: control array
What do you mean by dynamic? Do you want to be able to remove and add controls during runtime? Then you should go for a List(Of T).
For example, if you're looking to populate it with textboxes you'd declare it like so:
C# Code:
List<TextBox> textBoxList = new List<TextBox>();
Adding and removing textboxes is just as easy as using the Add/Remove methods.
-
Nov 26th, 2007, 07:40 AM
#4
Thread Starter
Member
Re: control array
thanks sir, yes you are right, please guide me how to use it.
-
Nov 26th, 2007, 07:43 AM
#5
Re: control array
Lookup the List<T> class in the MSDN Library. That will guide you how to use it.
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
|