Initializing array of objects

Discussion in 'C#' started by imported_bojomojo, Aug 28, 2010.

  1. imported_bojomojo

    imported_bojomojo New Member

    Aug 28, 2010
    Likes Received:
    Trophy Points:
    I am initializing and array of objects, i need something like this:

    Greyhound[1].StartingPosition = pictureBox1.Location;
    Greyhound[2].StartingPosition = pictureBox2.Location;

    and so on.. but I need to make it by a loop

    for ( ......... ) { Greyhound.StartingPosition = ????????? // what should go here }

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice