This documentation is archived and is not being maintained.

Form.InputLanguageChanging Event

Occurs when the user attempts to change the input language for the form.

[Visual Basic]
Public Event InputLanguageChanging As _
public event InputLanguageChangingEventHandler
public: __event InputLanguageChangingEventHandler*

[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 InputLanguageChangingEventArgs containing data related to this event. The following InputLanguageChangingEventArgs properties provide information specific to this event.

Property Description
Cancel (inherited from CancelEventArgs) Gets or sets a value indicating whether the event should be canceled.
Culture Gets the locale of the requested input language.
InputLanguage Gets a value indicating the input language.
SysCharSet Gets a value indicating whether the system default font supports the character set required for the requested input language.


This event occurs before the change of input language is made for the form. You can cancel the language change by setting the Cancel property of the InputLanguageChangingEventArgs passed to your event-handling method to false. If the event is canceled, the input language is not changed. You can use this event to determine whether the requested input language change is appropriate for your application.

For more information about handling events, see Consuming Events.


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 | InputLanguageChanged | OnInputLanguageChanging