![]() |
| ||
| I am needing a control array, but VB.NET doesn't support them... Quote:
What I'm wanting to do is 1. read all the records from a sequential access text file 2. put them into a string array I can do these first two, but then I'm wanting to create enough label controls to display all the records, one record per label. You could do this in VB 6.0. God I loved that version. I thought the purpose of OOP was to make it more efficient and less time-consuming, especially for newer and "better" versions of languages/compilers. It seems in this regard, VB is taking a step backward toward more primitive times. But perhaps I am an idiot and there is something about this I am not aware of about their reasons for doing this. The bottom line is, I don't know how many records there are going to be, and I want to be able to put my data in my string array into its respective label control, but VB.NET no longer supports INDEX properties. What can I do? Thanks. |
| ||
| Re: I am needing a control array, but VB.NET doesn't support them... This site has as good a solution as I have seen and is one that I use. http://www.codeproject.com/vb/net/Control_Arrays.asp If you have any question I will try to help. |
| ||
| Re: I am needing a control array, but VB.NET doesn't support them... you can also do it with: Me.Controls.AddRange(Control[] myControlArray)and you have your problem solved. |
| ||
| Re: I am needing a control array, but VB.NET doesn't support them... |
| All times are GMT -4. The time now is 9:19 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC