Spread Windows Forms 9.0 Product Documentation
KeyCode Property (DialogKeyEventArgs)
Example 


Gets the key code for the key the user pressed.
Syntax
'Declaration
 
Public ReadOnly Property KeyCode As Keys
'Usage
 
Dim instance As DialogKeyEventArgs
Dim value As Keys
 
value = instance.KeyCode
public Keys KeyCode {get;}
Example
This example uses the KeyCode property.
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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

DialogKeyEventArgs Class
DialogKeyEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.