How do I access an object in another windows form using c#?
<p>I've got my windows form Main.cs and and my windows form Options.cs. Inside my Main.cs I've defined a class called "Player" and I've instantiated it there.</p>

<p>From my Options form I'd like to be able to access the methods and properties of the Player object I created in the Main.cs form. Visual Studio 2010 tells me "The name "Player1" does not exist in the current context.</p>

<p>What I think is weird and what is adding to my confusion is the fact that I can "see" static methods for my Player class from the Options.cs form.</p>

<p>Thank you in advance!</p>

<p>EDIT:</p>

<p>Inside Main.cs:</p>

<pre><code>Player Player1 = new Player("Player 1", "X");
Player Player2 = new Player("Player 2", "O");
</code></pre>

<p>...</p>

<pre><code>public class Player
{
    public static bool Turn { get; set; }
    public static int TotalGames { get; set; }

    public string Name { get; set; }
    public string Icon { get; set; }

    public static void ToggleTurn()
    {
        Turn = !Turn;
    }

    public Player(string name, string icon)
    {
        Name = name;
        Icon = icon;
    }

}
</code></pre>

<p>Inside Options.cs:</p>

<pre><code>private void Options_Load(object sender, EventArgs e)
{
    SetCheckboxesToPlayerTurn();
    txtPlayer1Name.Text = Player1.Name; //HERE IS WHAT I WANT :(
}
</code></pre>
