有效使用进度条 [英] To use progressbar effectively
本文介绍了有效使用进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友,
我正在浏览(打开)来自FileOpenDialog的多张图片。如果图像的尺寸太大,则需要花费时间加载到图片框中。如何使用进度条显示图像加载的进度?
还有
如何在数据库连接到应用程序时使用progreassbar?我正在使用SQL 2005数据库。我想显示数据库连接的进度。
Plz帮助我...
hello friends,
i'm browsing(opening) multiple images from FileOpenDialog. If the dimensions of images are so big then it takes time to load in a picturebox. how can i use progressbar to show progress of image loading?
ALSO
how can i use progreassbar while database is connecting to application? i'm using SQL 2005 database. I want to show progress of database connection.
Plz help me out...
推荐答案
1 )使用 PictureBox.LoadProgressChanged事件 [ ^ ]
将图像从Internet加载到PictureBox控件和跟踪加载进度 [ ^ ]
2)类似的解决方案(已用时间计算):带有进度条和Numeri的简单计时器cUpDown [ ^ ]
您可以使用 BackgroundWorker类 [ ^ ]:
初学者的BackgroundWorker课程示例 [ ^ ]
BackgroundWorker.ProgressChanged事件 [ ^ ]
更多:
用Visual Basic .NET覆盖事件处理程序 [ ^ ]
使用Visual Basic .NET进行多线程编程 [ ^ ]
如何:在后台下载文件 [ ^ ]
1) Use PictureBox.LoadProgressChanged Event[^]
Load an Image from Internet to PictureBox control and Track the Loading Progress[^]
2) Similar solution (elapsed time is counting): Simple Timer with Progress Bar and NumericUpDown[^]
You can use BackgroundWorker Class[^] too:
BackgroundWorker Class Sample for Beginners[^]
BackgroundWorker.ProgressChanged Event[^]
More:
Overriding Event Handlers with Visual Basic .NET[^]
Multithreaded Programming with Visual Basic .NET[^]
How to: Download a File in the Background[^]
这篇关于有效使用进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文