Accessing Form1.picturebox1 from another class VS2010
<p>iam new to C# </p>

<p>i got some problem, i am create some picturebox in the Form1 through Form.cs[Design]</p>

<p>i want to accessing the picture box from Form1</p>

<p>so i have to create an object on other class to access Form1.picturebox1</p>

<p>but i can get it right, can some one help me</p>

<pre><code>namespace RaceGame{
class Greyhound
{

    Form1 runner;

    public int StartingPosition = 13;
    public int RacetrackLength = 420;
    public PictureBox MyPictureBox = null;
    public int Location = 0;
    public Random Randomizer;

    public void Run()
    {

        runner.pictureDog1.Location = new Point(13, 100);
    }     
}
</code></pre>

<p>this is Form1</p>

<pre><code>namespace RaceGame{public partial class Form1 : Form
{
    Greyhound racing = new Greyhound();
    public Form1()
    {
        InitializeComponent();
    }

    private void raceButton_Click(object sender, EventArgs e)
    {
        racing.Run();
    }



}
</code></pre>

<p>}    </p>
