altKey Property

Microsoft FrontPage Visual Basic

expression.altKey

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

The following example displays a message if the user is pressing the ALT key when the user resizes the application window. This example must be placed in a class module, and it assumes you have declared an FPHTMLWindow2 object variable called "winFP," as shown.

Private WithEvents winFP As FPHTMLWindow2

Private Sub winFP_onresize()
    Dim objEvent As IHTMLEventObj

    Set objEvent = winFP.event

    If objEvent.altKey = True Then
        MsgBox "You are pressing the ALT key."
    End If
End Sub