Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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! :)

Posted
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

Never ascribe to malice that which is adequately explained by incompetence. - Napoleon Bonaparte

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...