Does VB.NET have Control Arrays?

Hey,

I'm a VB6 programmer, but I also have VB.NET. And I was wondering: can you create control arrays in VB.NET like you can in VB6. And if so, how.

I searched the MSDN documentation that came with the VB.NET studio, but couldn't really find anything.

Best Regards,
Richard

Comments

  • : Hey,
    :
    : I'm a VB6 programmer, but I also have VB.NET. And I was wondering: can you create control arrays in VB.NET like you can in VB6. And if so, how.
    :
    : I searched the MSDN documentation that came with the VB.NET studio, but couldn't really find anything.
    :
    : Best Regards,
    : Richard
    :
    Sure you can. It's actually class. In my opinion, if you need to search some .NET code example or explanation it will be better to use Google than MSDN. MSDN sucks! Check this out
    http://www.google.com/search?hl=en&q=control+array+VB.NET+&spell=1
  • : : Hey,
    : :
    : : I'm a VB6 programmer, but I also have VB.NET. And I was wondering: can you create control arrays in VB.NET like you can in VB6. And if so, how.
    : :
    : : I searched the MSDN documentation that came with the VB.NET studio, but couldn't really find anything.
    : :
    : : Best Regards,
    : : Richard
    : :
    : Sure you can. It's actually class. In my opinion, if you need to search some .NET code example or explanation it will be better to use Google than MSDN. MSDN sucks! Check this out
    : http://www.google.com/search?hl=en&q=control+array+VB.NET+&spell=1
    :
    Actually there is something on MSDN about control array

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconcontrolarraychangesinvisualbasicnet.asp

  • Damn!!!!

    I'll have control arrays, any time... It's kinda 'sloppy' that there isn't an index property anymore.
    I was thinking about dynamically creating a lot of controls, which I could access by Index. Using the Tag, for example, I'd have to search the control the entire time --> Slower.

    Well, thanks for the information!

    Best Regards,
    Richard

  • : Damn!!!!
    :
    : I'll have control arrays, any time... It's kinda 'sloppy' that there isn't an index property anymore.
    : I was thinking about dynamically creating a lot of controls, which I could access by Index. Using the Tag, for example, I'd have to search the control the entire time --> Slower.
    :
    : Well, thanks for the information!
    :
    : Best Regards,
    : Richard
    :
    :
    I found quite interesting thing here ... sounds like control array will be back in new version of VB.NET ... http://visualbasic.about.com/od/usingvbnet/l/bldykctrlarraya.htm
  • I dunno if this makes things better, but here was a library generated for creating control arrays, close to the VB6 style (maybe):

    http://www.windowsforms.net/default.aspx?tabindex=6&tabid=47&ItemID=16&mid=142

    The thing w/ VB.NET as opposed to VB6 is that there is less happening behind the scenes. Meaning, you have to account for things that VB6 use to do on your behalf.

    For instance, no control arrays in the sense we were use to and no concept of global Form object (which confused me for a while.)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories