RadProgressBar passed as Byref fails

3 posts, 1 answers
  1. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 21 Nov 2011 Link to this post

    Hi,
    I have a radProgressBar that I'm using in a sync component.  I pass the RadProgressBar with a byref into the sync class expecting that when I update the Value1 parameter it will change the bar position.

    If I set the Value1 field just before the sync command from within the form it works fine but if I try the same thing once in the sync component it doesn't update the field.  

    Now I thought that using byRef would work - it certainly used to.

    Any pointers (pun intended)?

    Regards,

    Jon
  2. Answer
    Ivan Petrov
    Admin
    Ivan Petrov avatar
    701 posts

    Posted 22 Nov 2011 Link to this post

    Hello Jon,

    Thank you for writing

    After you update the value of the RadProgressBar in a different thread you have to execute a call to the following method:

    RadProgressBar1.ProgressBarElement.IndicatorElement1.UpdateLayout()
    and probably you will have to Refresh the form.

    If this does not solve the problem, I would kindly ask you to send me a sample project which demonstrates how you are using the RadProgressBar. 

    I hope this will help. Should you need further assistance I would be glad to provide it. Kind regards,
    Ivan Petrov
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jon
    Jon avatar
    813 posts
    Member since:
    Oct 2008

    Posted 22 Nov 2011 Link to this post

    Ivan you're a star - that fixed it.

    Many thanks for the help!

    Best Regards,

    Jon
Back to Top