Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><code>KeyCode</code> contains data for the key that produced the <code>KeyUp</code> or <code>KeyDown</code> event. <code>KeyData</code> contains the combination of that key together with CTRL, SHIFT or ALT if any of those were pressed.</p> <p>Example:</p> <ul> <li>Press (and hold) CTRL. <code>KeyDown</code> will be raised, <code>KeyCode</code> will be <code>Keys.ControlKey</code>, <code>KeyData</code> will be <code>Keys.ControlKey | Keys.Control</code>.</li> <li>While still holding CTRL pressed, press SHIFT. <code>KeyDown</code> will be raised, <code>KeyCode</code> will be <code>Keys.ShiftKey</code> and <code>KeyData</code> will be <code>Keys.ShifKey | Keys.Shift | Keys.Control</code>.</li> </ul> <p>Note that <code>KeyData</code> and <code>KeyCode</code> can contain any value in the <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.keys.aspx" rel="noreferrer"><code>Keys</code></a> enumeration (such as <code>Keys.A</code>, <code>Keys.NumPad4</code> or <code>Keys.Up</code>). Note that when one of the modifier keys are pressed, it is represented by two values in <code>KeyData</code> (one for they key and one for the modifier value). The modifiers are also available through the <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.keyeventargs.modifiers.aspx" rel="noreferrer"><code>Modifiers</code></a> property.</p> <p><code>KeyValue</code> will return a numerical value representing the key, essentially an integer representing the value found in <code>KeyCode</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload