tags:

views:

30

answers:

2

I am trying to use:

PictureBox1.Length

but I get the following error:

Error 3 'System.Windows.Forms.PictureBox' does not contain a definition for 'Length' and no extension method 'Length' accepting a first argument of type 'System.Windows.Forms.PictureBox' could be found (are you missing a using directive or an assembly reference?)

+4  A: 

Use .Height and .Width properties.

JYelton
+2  A: 

The PictureBox control does not have a Length Property. Here is a list of all properties for a PictureBox. What are you trying to do?

You might want to look at Height and Width

SwDevMan81
okay.. I guess .width will work..not I have a problem.. 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 loopfor ( ......... ){Greyhound[i].StartingPosition = ????????? // what should go here??}
Shadi Philip
What is your goal? Are Greyhound Form's? Controls?
SwDevMan81