I'm trying to enable user input to configure hotkeys for an application, and I'm struggling with trying to detect when a key is pressed and subsequently retrieve the DWORD value pertaining to said pressed key.
I'm trying something like this:
private void textBox1_TextChanged(object sender, KeyEventArgs e)
string result = String.Format("%d", e.KeyValue);
When I type in textBox1, nothing happens at all.
Ideally, I'd like the user to be able to click a button, and then enter in their input, which will be recorded as a DWORD value.
Any help would be great, thanks.