加载大量图片,不希望看到加载过程... [英] Loading alot of images, don't want to see the load process...

查看:55
本文介绍了加载大量图片,不希望看到加载过程...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我有一个132 PictureBox的加载方法,可能会根据用户选择在这些框中加载70-90个图像。我的加载方法没有错误。但是我试图在加载时隐藏所有的图片框,因为我不喜欢它们加载时的样子。


我有132个PB'的内部面板,最初隐藏,并显示在方法的末尾,我也使用Suspend / ResumeLayout可能不显示它们,而我的方法是从本地文件夹加载每个图像...但显示在结束时方法似乎首先完成,然后循环开始,布局功能也没有做任何事情。我在FOR语句中尝试了一个IF语句来显示循环结束时的面板,也没有工作。


基本上,我需要这个:保持面板隐藏直到图像加载完成。但是我还没想出怎么做...这个方法的show部分似乎总是在循环开始之前先运行,尽管在方法结束时......


有什么建议吗?

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?

推荐答案

让我们看看实际的例程,然后我们就可以指导你哪里出错了。
Let''s see the actual routine and then maybe we can guide you as to where you went wrong.


展开 | 选择 | Wrap | 行号



基本上,我需要这个:保持在图像加载之前隐藏的面板完成。
Basicly, I need this: Keep the panels hidden until the image loading is done.



您提供的代码中没有图片加载。


您在哪里将图片加载到您的130多个图片盒?

There is no image loading taking place in the code you have provided.

Where are you loading the images into your 130+ pictureboxes?


这篇关于加载大量图片,不希望看到加载过程...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆