Accessing objects and instances from string help
Problem 1:
Say I have a winforms label object, how could I change it's text by accessing it from text.
To explain this, say I have multiple labels (label1, 2 and 3), i'm not sure which one i want to change the text of and it's up to the user to change it via command line like so:
>settext label1 test
Problem 2:
Is there anyway to get the instances of a class and alter, say, a variable of the instance?
Example: I have a class "game". An instance is created at runtime, but more are created dynamically by the user.
How could i change the sizeX int of each "game" instance programatically?
If i need to better explain these issues, tell me 
Perhaps you guys could help? @eth0nic @DatCoder
Say I have a winforms label object, how could I change it's text by accessing it from text.
To explain this, say I have multiple labels (label1, 2 and 3), i'm not sure which one i want to change the text of and it's up to the user to change it via command line like so:
>settext label1 test
Problem 2:
Is there anyway to get the instances of a class and alter, say, a variable of the instance?
Example: I have a class "game". An instance is created at runtime, but more are created dynamically by the user.
How could i change the sizeX int of each "game" instance programatically?
Code:
private void openNewClient_Click(object sender, EventArgs e)
{
Client.Game game = new Client.Game(this.sizeX, this.sizeY, this.Handle) //Constructor takes size for the game and IntPtr to set its parent as
}
private void Main_SizeChanged()
{
//here i'd like to change each instance of "Game"s size to this.sizeX and this.sizeY
}

Perhaps you guys could help? @eth0nic @DatCoder


