Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control Array 1

Status
Not open for further replies.

ratzp

Programmer
Dec 30, 2005
49
IN
Is there the concept of Control Array as we used to do with VB 6.0 ... if yes then How ?????

 
PGoRule , can you explain the difference in how the concept has changed from a non OO language like VB6 to C#.NET (being a true OOL)... better methods and handling things like resources and how you would make this method poperly in a .NET framework




____________ signature below ______________
General FAQ faq333-2924
5 steps to asking a question faq333-3811
 
He can only do that if he finds a link on Google for you ;)
 
Anyhow, to answer your question. In .Net, a collection is an object, just like anything else in .Net, so you can create your own destiny for this collection of controls. You can't do that in VB6 without a lot of work to hack around and make it OOP-like.

Inheritance nad polymorphism and just a couple of OOP techniques that can be applied with/to a any .Net object. These things, again, are not available in VB6 unless you hacked your way around and made something similar.

I'm by no means an expert in explaining all this, as you can tell, but perhaps it makes alittle sense.

The sample provided in that link shows how to properly create a Collection with the .Net resources. You don't have to manually dispose of items (supposedly) beceause of the built-in Garbage Collection - admittedly the garbage collection does do it's job, lots better than any previous MS garbage collection imho.

Sounds like you should pick up a book on Object Oriented Programming to ge ta better understanding of it. I have a decent A-Press book for C# - it's title is something to do with building classes in C# (don't have the book in front of me) but it's indeed helpful.

Sorry for the babbling and ignore this if it is complete and utter tripe.

 
I have already submitted a FAQ on this topic in VB.NET forum, but it's not active yet...Once it's done, I can put that FAQ number here for the reference...So hoping...

Sharing the best from my side...

--Prashant--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top