Share via


BaseForm.OnInitialActivated(EventArgs) Method

Definition

Occurs when the base form is first activated.

protected:
 virtual void OnInitialActivated(EventArgs ^ e);
protected virtual void OnInitialActivated (EventArgs e);
abstract member OnInitialActivated : EventArgs -> unit
override this.OnInitialActivated : EventArgs -> unit
Protected Overridable Sub OnInitialActivated (e As EventArgs)

Parameters

e
EventArgs

An empty EventArgs.

Examples

The following example overrides the OnInitialActivated method to do one-time setup tasks.

protected override void OnInitialActivated(EventArgs e) {
    doOneTimeTasks();

}

Remarks

The OnActivated method calls the OnInitialActivated method.

Applies to