Click to See Complete Forum and Search --> : control array
k_glitch
Nov 21st, 2007, 10:41 AM
is it possible to creat a dynamic control array
k_glitch
Nov 21st, 2007, 11:05 AM
Please any expert Help me
Atheist
Nov 21st, 2007, 12:14 PM
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:
List<TextBox> textBoxList = new List<TextBox>();
Adding and removing textboxes is just as easy as using the Add/Remove methods.
k_glitch
Nov 26th, 2007, 06:40 AM
thanks sir, yes you are right, please guide me how to use it.
jmcilhinney
Nov 26th, 2007, 06:43 AM
Lookup the List<T> class in the MSDN Library. That will guide you how to use it.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.