在数据交易期间显示图像 [英] Showing an image during data transaction
本文介绍了在数据交易期间显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尊敬的先生,
在制作Windows应用程序的过程中,我不得不为100多个数据行运行各种数据事务代码,我想在代码执行过程中显示进度.gif图像,但是实际的问题是我没有动画在执行过程中.我的代码是-
在按钮的点击事件中-
Dear Sir,
During making an windows application i have situation where i have to run various data transaction codes for more than 100 data rows, I want to show a progress .gif image during the execution of code, but the actual problem is my doesn''t animate during the execution. My code is -
in the click event of a button -
picturebox1.image=my.resources.loading.gif (loading.gif is the image)
' My Data transaction code here
picturebox1.image=nothing
它显示图像,但不设置动画.请帮帮我
感谢您的回答.
It shows the image but doesn''t animate. Please help me
I appreciate your answers.
推荐答案
看看这个:
与BackgroundWorker&创建自己的加载类 [ ^ ]
have a look at this:
Working with BackgroundWorker & Creating Your Own Loading Class[^]
这篇关于在数据交易期间显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文