charlie Posted September 11, 2004 Posted September 11, 2004 Hi all! I know this is a simple question but I don't know how to do it... How can I make an array of Labels?? I have 3 labels in one form and I wanna make an array with them. Can this be done in design time? I know with VB you can set the Index property to any value and it'll be its position in the array. But I don't see anything like this in the properties panel of C#. Any help will be great! Thanks in advance! :) Quote
Gladimir Posted September 11, 2004 Posted September 11, 2004 Hi all! I know this is a simple question but I don't know how to do it... How can I make an array of Labels?? I have 3 labels in one form and I wanna make an array with them. Can this be done in design time? I know with VB you can set the Index property to any value and it'll be its position in the array. But I don't see anything like this in the properties panel of C#. Any help will be great! Thanks in advance! :)I don't think it is as easy as it used to be in VB6. I've never needed a control array in .NET; so I've never done it, but here is an article from Microsoft. Creating Control Arrays in Visual Basic .NET and Visual C# .NET Quote Never ascribe to malice that which is adequately explained by incompetence. - Napoleon Bonaparte
charlie Posted September 11, 2004 Author Posted September 11, 2004 Wow! Too complicated.... Thanks for your time anyway! :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.