No animation on RadWaintingBar

2 posts, 0 answers
  1. Moji
    Moji avatar
    6 posts
    Member since:
    Mar 2015

    Posted 17 Mar 2015 Link to this post


    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
  2. Hristo
    Hristo avatar
    1059 posts

    Posted 20 Mar 2015 Link to this post

    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.

Back to Top