Spread Windows Forms 12.0 Product Documentation
DialogChar Event
Example 


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

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

PropertyDescription
Gets the character corresponding to the key the user pressed.  
Gets or sets whether the event was handled.  
Example
This example uses the DialogChar event.
private void fpSpread1_DialogChar(object sender, FarPoint.Win.Spread.DialogCharEventArgs e)
        {
            // Press Alt + a
            listBox1.Items.Add(e.CharCode);
        }
Private Sub FpSpread1_DialogChar(sender As Object, e As FarPoint.Win.Spread.DialogCharEventArgs) Handles FpSpread1.DialogChar
        ' Press Alt + a
        ListBox1.Items.Add(e.CharCode)
    End Sub
See Also