EditorControl.OnAppActivate Method

Notifies the component whenever the host application is activated or deactivated.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overrides Sub OnAppActivate ( _
    fActive As Integer, _
    dwOtherThreadID As UInteger _
)
'Usage
Dim instance As EditorControl 
Dim fActive As Integer 
Dim dwOtherThreadID As UInteger

instance.OnAppActivate(fActive, dwOtherThreadID)
public override void OnAppActivate(
    int fActive,
    uint dwOtherThreadID
)
public:
virtual void OnAppActivate(
    int fActive, 
    unsigned int dwOtherThreadID
) override
public override function OnAppActivate(
    fActive : int, 
    dwOtherThreadID : uint
)

Parameters

  • fActive
    Type: System.Int32

    If true, the host application is being activated, otherwise it is being deactivated.

  • dwOtherThreadID
    Type: System.UInt32

    If the host application is being activated, the ID of the thread that owns the window being deactivated. If the host application is being deactivated, the ID of the thread owning the window being activated.

Implements

IOleComponent.OnAppActivate(Int32, UInt32)

Remarks

By default this method does nothing.

This method is not called when both the window being activated and the one being deactivated belong to the host application.

.NET Framework Security

See Also

Reference

EditorControl Class

EditorControl Members

Microsoft.VisualStudio.Package Namespace