New to Telerik UI for WinFormsStart a free 30-day trial

Update the Text of Rad Label

Updated over 1 year ago

Environment

Product VersionProductAuthor
2018.3.1016RadLabel for WinFormsDimitar Karamfilov

Description

When performing a time-consuming operation on the UI thread the label text is not updated until the operation is finished.

Solution

Manually force the layout update. This way you can be sure that the proper value is displayed.

Update RadLabel Layout

C#

this.radLabel1.LayoutManager.UpdateLayout();

If you are using a label inside a status strip use the following code.

Update Status SStrip Layout

C#

radStatusStrip1.LayoutManager.UpdateLayout();
radStatusStrip1.Refresh();
In this article
EnvironmentDescriptionSolution
Not finding the help you need?
Contact Support