Back to Devexpress

BaseControl.Refresh() Method

windowsforms-devexpress-dot-xtraeditors-dot-basecontrol-7ca056f1.md

latest2.2 KB
Original Source

BaseControl.Refresh() Method

Forces the control to invalidate its client area and immediately redraw itself and any child controls.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
public override void Refresh()
vb
Public Overrides Sub Refresh

Remarks

The Refresh method recalculates the control’s view information and then invalidates and redraws the control’s client area.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Refresh() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

how-to-use-docvariable-fields/CS/DocumentVariablesExample/MyProgressIndicator.cs#L34

csharp
_Indicator.EditValue = currentProgress;
_Indicator.Refresh();
_Indicator.Show();

how-to-use-docvariable-fields/VB/DocumentVariablesExample/MyProgressIndicator.vb#L34

vb
_Indicator.EditValue = currentProgress
_Indicator.Refresh()
_Indicator.Show()

See Also

BaseControl Class

BaseControl Members

DevExpress.XtraEditors Namespace