I have non-english keyboard, also so instead of 1 of my keyboard i have +. When i press a key i get a string from KeyChar.ToString(), also "+" with non-english keyboard and "1" with english-keyboard.
How can i convert this string to KeyCode Keys.D1
With the condition when the parameter will be one of them, i always get the same result also Keys.D1 in format Keys ??
private Keys ConvertToKeys(string s)
Thanx for your help !
use hard coding
use if else for conditions and return wt so ever u like
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)