Share via


How to: Get the Current Application Object

This example shows how to get a reference to the Application object instance for the current AppDomain.

Example

The following example shows how to get a reference to the current Application object instance from the Current property.

      ' Get a reference to the current Application object
      Dim currentApplication As Application = Application.Current
// Get a reference to the current Application object
Application currentApplication = Application.Current;