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

No animation on RadWaintingBar

1 Answer 265 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
Moji asked on 18 Mar 2015, 04:26 AM

I have a button on my main Form which will pop up another form called PleaseWaitForm containing a RadWaitingBar.
The problem is I can get the WaitingBar to animate.

01.Private Sub Btn_ReadFromDB_Click(sender As Object, e As EventArgs) Handles Btn_ReadFromDB.Click
02.        StatusLabel.Text = ".................."
03.        Dim pleaseWait As New PleaseWaitForm
04.        'pleaseWait.Location = Me.Location
05.        pleaseWait.StartPosition = FormStartPosition.CenterScreen
06.        pleaseWait.Show()
07.        ' Set cursor as hourglass
08.        Cursor.Current = Cursors.WaitCursor
09.        PleaseWaitForm.RadWaitingBar.StartWaiting()
10.        Application.DoEvents()
11.        'Read Excel Database
12.        ReadFromExcel("\Assets\Documents\?????.xls")
13.        PleaseWaitForm.RadWaitingBar.StopWaiting()
14.        Cursor.Current = Cursors.Default
15.        ' Hide the please wait form
16.        pleaseWait.Hide()
17.    End Sub

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 20 Mar 2015, 03:14 PM
Hi Moji,

Thank you for writing. 

I tested a similar scenario and everything on my side is working as expected. I do not have the implementation of your PleaseWaitForm and I cannot further investigate it.

I noticed that you were reading some data from Excel. Perhaps it might be a good idea this process to be wrapped up in a BackgroundWorker, an example is discussed here. Additional information and other examples about the RadWaitingBar element you can find in this section of our documentation.

I hope this helps. Should you have further questions please do not hesitate to write back.

Hristo Merdjanov

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question