In my project I have a loading method for 132 PictureBoxs, and will probably load 70-90 images in those boxes based on user selection. There is no error in my loading method. But I have tried to hide all the picture boxes during load time, because I don't like how it looks as they load.
I have all 132 PB's inside panels, which are hidden at first, and are shown at the end of the method, and I also use Suspend / ResumeLayout to maybe not show them while my method is loading each Image from local folders... But the show at the end of the method seems to be done first then the loop starts, and the Layout functions don't do anything either. I have tried an IF statement within the FOR statement to show the panels at the end of the loop, doesn't work either.
Basicly, I need this: Keep the panels hidden until the image loading is done. But I haven't figured out how to do this... The show portion of the method seems to always be ran first before the loop starts despite being at the end of the method...
Any suggestions?
I have all 132 PB's inside panels, which are hidden at first, and are shown at the end of the method, and I also use Suspend / ResumeLayout to maybe not show them while my method is loading each Image from local folders... But the show at the end of the method seems to be done first then the loop starts, and the Layout functions don't do anything either. I have tried an IF statement within the FOR statement to show the panels at the end of the loop, doesn't work either.
Basicly, I need this: Keep the panels hidden until the image loading is done. But I haven't figured out how to do this... The show portion of the method seems to always be ran first before the loop starts despite being at the end of the method...
Any suggestions?
Comment