简体   繁体   English

如何使用进度条指示进度,而无需在VB.NET中进行任何步骤?

[英]How do i use the progressbar to indicate progress without having any steps in the process in VB.NET?

How do I indicate progress using the progressbar for a process with no steps. 如何使用进度条为没有步骤的流程指示进度。 The process simply sends an sql query to a oracle server, which then will process the query for some time. 该过程仅向oracle服务器发送一个sql查询,然后它将处理查询一段时间。 In this time I have no means (steps) of setting progress correctly, so I would rather just let the progress bar show progress like it is the case in Windows and many windows programs (no actual progress, the progress indicating simply moves to the end and starts over until the process is done). 这一次我没有办法正确设置进度,所以我宁愿让进度条显示进度,就像在Windows和许多Windows程序中一样(没有实际进度,进度只是显示到最后)并重新开始,直到该过程完成为止)。

Set the style of the progress bar to: 将进度条的样式设置为:

ProgressBarStyle.Marquee

Example: 例:

在此处输入图片说明在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM