Export (0) Print
Expand All

Form.Deactivate Event

Occurs when the form loses focus and is not the active form.

[Visual Basic]
Public Event Deactivate As EventHandler
[C#]
public event EventHandler Deactivate;
[C++]
public: __event EventHandler* Deactivate;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type EventArgs.

Remarks

You can use this event to perform tasks such as updating another window in your application with data from the deactivated form.

For more information about handling events, see Consuming Events.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Form Class | Form Members | System.Windows.Forms Namespace | Activated | Activate | OnDeactivate

Show:
© 2014 Microsoft