本文介绍了持续进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在从Windows窗体"FormA"调用一个方法。该方法命名为"Method1()"。可用于另一个类别"ClassA"。


此"FormA"包含名为"lblStatus"的标签和一个进度条如


progressbar.Style = ProgressBarStyle.Marquee;


progressbar.MarqueeAnimationSpeed = 30;


在调用"Method1()"之前,进度条连续运行。但是,当我称之为方法"Method1()"时,进度条停止运行。


" lblStatus"用于"ClassA"中。向用户说出状态。


我的目标是使进度条运行,即使在"FormA"中也是如此。调用方法"Method1"来自"ClassA"。


有人可以帮助我吗?


提前致谢。



解决方案

Hi,

I am calling a method from a windows form "FormA". That method named "Method1()" is available in another class "ClassA".

This "FormA" contains a label named "lblStatus" and a progressbar like

progressbar.Style = ProgressBarStyle.Marquee;

progressbar.MarqueeAnimationSpeed = 30;

Before calling "Method1()", progressbar runs continuously. But when I call that method "Method1()" the progressbar stops running.

"lblStatus" is used in "ClassA" to say the status to the user.

My objective is to make the progressbar running even when the"FormA" calls the method "Method1" from "ClassA".

Could anyone help me in this?

Thanks in advance.

解决方案


这篇关于持续进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-30 23:42