المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Simple progress bar code not working correctly.



C# Programming
08-27-2009, 07:08 PM
Good morning.

I have the following code:


uipc.tsProgBar.Style = ProgressBarStyle.Marquee;
uipc.tsProgBar.MarqueeAnimationSpeed = 100;

// Do some processes

uipc.tsProgBar.Style = ProgressBarStyle.Continuous;
uipc.tsProgBar.MarqueeAnimationSpeed = 0;


If I put a messagebox after the
uipc.tsProgBar.Style = ProgressBarStyle.Marquee;
uipc.tsProgBar.MarqueeAnimationSpeed = 100; ,
then the progress bar with start "scrolling" and stop when the user click Ok on the messagebox.

Any suggestion? Thank you, WHEELS