Add multiples Picturebox using ThreadPool

Posted by Pmdusso on Stack Overflow See other posts from Stack Overflow or by Pmdusso
Published on 2010-06-10T19:25:18Z Indexed on 2010/06/10 20:52 UTC
Read the original article Hit count: 319

Hi!

Im doing a Naval Battle for University. I decided to do it in C#. My board is 20 x 20 of mini (20x20) PictureBoxes. The problem is when I load the board I got a huuuge delay for draw all of them in the panel which contains them. So I thought to ThreadPool my method to escale the picuteres boxes creation and drawing fester.

Is this the correct aproach? I'm wondering if even if I launch 20 threads to create and set the picturesoboxes together I will still have the graphic delay.

(I wont past code right now because maybe the answer independs of it... if not, I past next :)

Sorry the bad english,

Thanks folks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about multithreading