'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.
Property | Description |
---|---|
CharCode | Gets the character corresponding to the key the user pressed. |
Handled | 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