i need my images from picboxes to be placed in a Bitmap array. can anyone show me an example how in codes i have 5 images that were placed in 5 picboxes.
Windows Forms General
i need my images from picboxes to be placed in a Bitmap array. can anyone show me an example how in codes i have 5 images that were placed in 5 picboxes.
Hi, diditel,
I remember you did ask this question before, didn't you
To do this, please try my following codes.
Bitmap[] bitmaps = new Bitmap[5]; bitmaps[0] = (Bitmap)pb1.Image; bitmaps[1] = (Bitmap)pb2.Image; bitmaps[2] = (Bitmap)pb3.Image; bitmaps[3] = (Bitmap)pb4.Image; bitmaps[4] = (Bitmap)pb5.Image;
Code Snippet
Hope this helps,
Regards