Home    
Log In    
Share Code    
Join    

Navigation
 Skip Navigation Links.

Forums
Skip Navigation Links.

Search

 

Advertisement
 
VB.NET Source Code > Control Arrays Source Code
Details
Author: ptaylor
Views: 710

Control Arrays
Description
Control Arrays were removed from VB.NET

This is how to simulate them.
 
 
Code:
Dim LabelArray1(10) As Label
Dim i As Integer = 0

LabelArray1(0) = Label0
LabelArray1(1) = Label1
LabelArray1(2) = Label2
LabelArray1(3) = Label3
LabelArray1(4) = Label4
LabelArray1(5) = Label5
LabelArray1(6) = Label6
LabelArray1(7) = Label7
LabelArray1(8) = Label8
LabelArray1(9) = Label9
LabelArray1(10) = Label10

Do While i <= 10

    LabelArray1(i).Text = "Label " & i & " Array"
    i = i + 1

Loop  
Date Added: 02/09/2007 13:03:26





Comments


If you log in you can add a comment of your own!
 
 
Welcome Guest
 
  Log In Name
 
  Password
 
 
Statistics
Your Details: Not Logged In
  Join Date: N/A
  Last Logon: N/A
  Code Snippets: N/A
  Code Comments: N/A
  Forum Posts: N/A
  Forum Subjects: N/A

Site Wide
  Code Snippets: 32
  Code Comments: 2
  Forum Posts: 52
  Forum Subjects: 24
 
Random Code
How to Multi-Thread
Multi-Threading allows you to have multiple runs o....

Language: VB.NET

 
Advertisement


All the Source Code and Tutorials on this site are free for you to use as you require.