想提高速度 [英] want to increase speed

查看:84
本文介绍了想提高速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用户控件.我在运行时创建了许多用户控件.在该用户控件上有一些图片框.我在事件中更改该图片框的颜色.图片框的信息(我要更改的颜色)存储在存储一些结构对象的arraylist中.然后当我更改所有PictureBox的颜色时.我希望它们一起改变颜色,但是在改变颜色方面会有一些明显的延迟.延迟不会有问题,但它们不会一起改变颜色.多数民众赞成在问题所在.

I have a user control. I am creating many user control at run time. On that user control there are some picture box. I change color of that picturebox on an event. information of picturebox (whose color I want to change) is stored in arraylist which store some structure object. then when I am changing color of all picturebox. I want they change color together there is some markable delay in changing color. delay in not problem but they are not changing color together. thats the problem.

推荐答案

如果将所有控件都包装在其中,例如某种面板控件,并在更改颜色之前将该面板隐藏起来,一旦所有颜色都更改,您就可以取消隐藏面板,并且所有控件都一起更改时,它就会出现.您甚至可以闪烁某种请稍候",以便用户知道发生了什么事.
If you wrap all of the controls in, for instance a panel control of some sort, and render that panel hidden prior to changing the colors you can then un-hide the panel once the all of the colors have changed and it will appear as if all of the controls have changed together. You could even flash a ''Please Wait'' of some kind so that users know that something is happening.


这篇关于想提高速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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