This is a migrated thread and some comments may be shown as answers.

WaitingBar will not start animation

1 Answer 250 Views
WaitingBar
This is a migrated thread and some comments may be shown as answers.
Claude
Top achievements
Rank 1
Iron
Veteran
Claude asked on 22 Feb 2021, 10:36 PM

I am using the following code and cannot get the WaitingBar to start animation.  I was running a Task, but tried adding a DoEvents and a Sleep to see if I could get it going.  Not sure why.  I am using the same WaitingBar in other places in my app and it works fine, but not here.

                            radWaitingBar1.Visible = true;
                            radWaitingBar1.Text = "Downloading files";
                           // radWaitingBar1.ResetWaiting();
                            radWaitingBar1.StartWaiting();
                            Application.DoEvents();
                            Thread.Sleep(5000);
                            //task = Task.Run(() => Run("um.zip"));
                            //task.Wait();
                            radWaitingBar1.StopWaiting();
                            radWaitingBar1.Visible = false;

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 25 Feb 2021, 10:30 AM

Hello, Claude,

According to the provided information, I suppose that you are trying to indicate that a time-consuming operation is undergoing. I would recommend you to refer to the following help article demonstrating how to indicate a long-lasting operation while using RadWaitingBarhttps://docs.telerik.com/devtools/winforms/controls/track-and-status-controls/waitingbar/using-waitingbar-with-a-background-worker  

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
WaitingBar
Asked by
Claude
Top achievements
Rank 1
Iron
Veteran
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or