What is a SELECT key?

While searching for some shortcuts for my application, I came across some constants in the C # Keys> enumeration :

  • Select
  • Delimiter
  • Processkey
  • Pa1
  • Crsel
  • Run

There is no additional information for them on MSDN.
Questions: Which keyboard key corresponds to these values?
(And are they on a standard keyboard layout?)

+4
source share
2 answers

VK_SELECTis the key code for a key Selectthat does not exist on most keyboards. I am sure I have not seen him.

, MapVirtualKey, key code . 0, .

Windows Forms, . KeyDown:

using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace testoForm
{
    public partial class Form1 : Form
    {
        [DllImport("user32")]
        static extern UInt32 MapVirtualKey(UInt32 nCode, UInt32 uMapType);
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_KeyDown(object sender, KeyEventArgs e)
        {
            ShowKey(e.KeyCode);
        }

        private void ShowKey(Keys key)
        {
            var keyCode = (UInt32)key;
            var scanCode = MapVirtualKey(keyCode, 0);
            var s = String.Format("VK = {0:X2}, SC={1:X2}", keyCode, scanCode);
            MessageBox.Show(s);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ShowKey(Keys.Select);
        }
    }
}

, key code . , Select. 0 Keys.Select.

+4

Microsoft , SELECT - . , , , , . http://cherrytree.at/misc/vk.htm

0

Source: https://habr.com/ru/post/1542919/


All Articles