System.Windows.Forms.Form.ActiveForm Property

Gets the currently active form for this application.

Syntax

public static Form ActiveForm { get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can use this method to obtain a reference to the currently active form to perform actions on the form or its controls.

If your application is a multiple-document interface (MDI) application, use the Form.ActiveMdiChild property to obtain the currently active MDI child form.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0