Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18011
Number of posts: 55384

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Does VB.NET have Control Arrays? Posted by BitByBit_Thor on 29 Oct 2005 at 6:01 AM
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
Report
Re: Does VB.NET have Control Arrays? Posted by lionb on 31 Oct 2005 at 9:14 AM
: 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
Report
Re: Does VB.NET have Control Arrays? Posted by lionb on 31 Oct 2005 at 9:19 AM
: : 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

Report
Re: Does VB.NET have Control Arrays? Posted by BitByBit_Thor on 31 Oct 2005 at 2:24 PM
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

Report
Re: Does VB.NET have Control Arrays? Posted by lionb on 1 Nov 2005 at 12:47 PM
: 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
Report
Re: Does VB.NET have Control Arrays? Posted by iwilld0it on 2 Nov 2005 at 7:16 AM
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.)



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.