BaseForm.OnInitialActivated(EventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.