Spread Windows Forms 12.0 Product Documentation
DialogKey Event
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > FpSpread Class : DialogKey Event
Occurs during message preprocessing of dialog keys.
Syntax
'Declaration
 
Public Event DialogKey As DialogKeyEventHandler
'Usage
 
Dim instance As FpSpread
Dim handler As DialogKeyEventHandler
 
AddHandler instance.DialogKey, handler
public event DialogKeyEventHandler DialogKey
Event Data

The event handler receives an argument of type DialogKeyEventArgs containing data related to this event. The following DialogKeyEventArgs properties provide information specific to this event.

PropertyDescription
Gets whether the Alt key was pressed.  
Gets whether the Ctrl key was pressed.  
Gets or sets whether the event was handled.  
Gets the key code for the key the user pressed.  
Gets the key data for the key the user pressed.  
Gets which combination of Ctrl, Shift, and Alt keys is pressed.  
Gets whether the Shift key was pressed.  
Example
This example uses the DialogKey event.
private void fpSpread1_DialogKey(object sender, FarPoint.Win.Spread.DialogKeyEventArgs e)
        {
            listBox1.Items.Add(e.KeyCode);
        }
Private Sub FpSpread1_DialogKey(sender As Object, e As FarPoint.Win.Spread.DialogKeyEventArgs) Handles FpSpread1.DialogKey
        ListBox1.Items.Add(e.KeyCode)
    End Sub
See Also