New to Telerik UI for WinForms? Start a free 30-day trial

Displays an overlay aligned to a visible form or child control, updating when the target moves or its containing form moves or resizes.

Definition

Constructors

C#
public OverlayScreen()

Methods

Attaches to the splash/overlay form events.

C#
protected virtual void AttachFormEvents(Form form)
Parameters:formForm

The form

Creates an action that sizes and shows the overlay over the associated region, or hides it when the region has no area.

C#
protected override Action CreateUpdateAction(Point location, Rectangle rect)
Parameters:locationPoint

The screen location at which the overlay region begins.

rectRectangle

The bounds of the visible associated region.

Returns:

Action

An action that applies the overlay's location, size, and visibility.

Overrides: BaseOverlayScreen.CreateUpdateAction(Point, Rectangle)

Detaches from splash/overlay form events.

C#
protected virtual void DetachFormEvents(Form form)
Parameters:formForm

The form

Shows a an overlay form.

C#
public virtual void Show(Control controlToAssociate)
Parameters:controlToAssociateControl

The associated control.

Attaches the overlay to the associated control, applies its theme, and runs the overlay form's message loop. This method catches and suppresses exceptions raised in the setup and message-loop block.

C#
protected virtual void ShowInternal(Control controlToAssociate)
Parameters:controlToAssociateControl

The form or child control whose visible bounds the overlay follows.