I did in this way, and it works:

let mutable pieces = new List<PictureBox>()

for j=0 to 9 - 1 do

let pic = new PictureBox(img)
pieces.add( pic)

for i=0 to pieces.Count - 1 do
pieces.Item(i).Location <- new Point(x, y)

Thanks for the help!!

By on 9/3/2011 8:11 AM ()
1
let pieces = Array.zeroCreate<PictureBox> 9

or

1
let pieces : PictureBox[] = Array.zeroCreate 9

You can also create arrays from expressions... see [link:msdn.microsoft.com] for more details

By on 9/2/2011 5:09 PM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper