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

RadProgressBar passed as Byref fails

2 Answers 33 Views
ProgressBar
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 21 Nov 2011, 12:26 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Petrov
Telerik team
answered on 22 Nov 2011, 11:45 AM
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.

0
Jon
Top achievements
Rank 1
answered on 22 Nov 2011, 11:48 AM
Ivan you're a star - that fixed it.

Many thanks for the help!

Best Regards,

Jon
Tags
ProgressBar
Asked by
Jon
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Jon
Top achievements
Rank 1
Share this question
or