Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Track / Progress / Waiting / Scroll Bars > RadProgressBar passed as Byref fails

Answered RadProgressBar passed as Byref fails

Feed from this thread
  • Jon Master avatar

    Posted on Nov 21, 2011 (permalink)

    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

    Reply

  • Answer Ivan Petrov Ivan Petrov admin's avatar

    Posted on Nov 22, 2011 (permalink)

    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.

    Reply

  • Jon Master avatar

    Posted on Nov 22, 2011 (permalink)

    Ivan you're a star - that fixed it.

    Many thanks for the help!

    Best Regards,

    Jon

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Track / Progress / Waiting / Scroll Bars > RadProgressBar passed as Byref fails
Related resources for "RadProgressBar passed as Byref fails"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]