yogi_bear_79
Member
- Joined
- Sep 30, 2009
- Messages
- 19
- Programming Experience
- Beginner
I am probably not even saying it correctly when I pose the question.
I have this simple class (starting out)
So far I can populate the List as so
I'd like to be able to use players globaly thru-out the project. So if I navigate away from the form that created it. I can access it again.
I have this simple class (starting out)
VB.NET:
Public Class Players
Public Name As String
Public Sub New(ByVal name As String)
Me.Name = name
End Sub
End Class
So far I can populate the List as so
VB.NET:
Dim players As List(Of Players) = New List(Of Players)
players.Add(New Players(txtNewPlayer.Text))
Dim x As Integer
Dim obj As Players
For x = 0 To players.Count - 1
obj = players.Item(x)
frmPlayers.PlayerList.Items.Add(obj.Name)
Next
I'd like to be able to use players globaly thru-out the project. So if I navigate away from the form that created it. I can access it again.
VB.NET:
Dim players As List(Of Players) = New List(Of Players)