KeyEventArgs.KeyData, KeyEventArgs.KeyCode and KeyEventArgs.KeyValue
问题 I have question about the KeyEventArgs 's KeyCode and KeyData and KeyValue . KeyCode and Keydata are Keys type, but I don't know what the difference between them is. For KeyValue , I don't know what it is -- it has an int type, does it return the char value of the pressed key? I don't have much experience with Key events; any explanation of how they function and how to use them would be greatly appreciated. 回答1: KeyCode contains data for the key that produced the KeyUp or KeyDown event.