convert a keycode to the relevant display character

后端 未结 3 1380
醉酒成梦
醉酒成梦 2021-02-10 02:02

In a C# Windows.Forms project I have a control that does not supply the KeyPressed event (It’s a COM control – ESRI map).

It only supplies the KeyUp and KeyDown events,

3条回答
  •  死守一世寂寞
    2021-02-10 02:09

    Look at KeysConverter and its ConvertToString method. Remember that not all KeyDown map to a KeyPress.

提交回复
热议问题