Google Answers Logo
View Question
 
Q: How do I use collections in VB.NET (I'm using 2005, but if you know 2003 its ok) ( No Answer,   0 Comments )
Question  
Subject: How do I use collections in VB.NET (I'm using 2005, but if you know 2003 its ok)
Category: Computers > Programming
Asked by: twowaymirrors_net-ga
List Price: $6.00
Posted: 09 Nov 2005 03:28 PST
Expires: 09 Nov 2005 03:42 PST
Question ID: 590957
I'm fairly experienced with Visual Basic 6 and am upgrading to VB.NET 2005. 

How do I create a collection of controls? I want it to do the
following, for example:

3 buttons in the control, btn1, btn2, btn3. I want btn1 to display
"hello world 1" btn 2 to display "hello world 2" and btn3 to display
"hello world 3"

The catch is that I want it all to be in ONE Private Sub. What should
the Private Sub contain?

Clarification of Question by twowaymirrors_net-ga on 09 Nov 2005 03:41 PST
To add to what i wrote below, it should basically be the equivalent of
VB 6 where it was possible to say something like

x = 1
btn(x).caption = "hello world 1"
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy