keyeventargs
-
Hai I am using the keydown event, for performing some operation. I just want to store this return value as string, i don't know how to do this. Can you help me. for example If the user press the key 'a', I want to store 'a' as string Thanks
It's a char, call ToString to store it as a string. But, it's one char, a char will do it just fine.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
It's a char, call ToString to store it as a string. But, it's one char, a char will do it just fine.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
Hai Thanks for reply I want to know want key is pressed by user. I think KeyData will provide that user pressed keydata but it returns key. I dont know how to store the return value as string. So i used this keyvalue . i wrote like this int ^ keyvalue = e->KeyValue; String ^data = keyvalue->ToString(); Can you tell me how to store the keydata as string. I am using .net framework 2.0 version(windows form application); thanks,
-
Hai Thanks for reply I want to know want key is pressed by user. I think KeyData will provide that user pressed keydata but it returns key. I dont know how to store the return value as string. So i used this keyvalue . i wrote like this int ^ keyvalue = e->KeyValue; String ^data = keyvalue->ToString(); Can you tell me how to store the keydata as string. I am using .net framework 2.0 version(windows form application); thanks,