Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. keyeventargs

keyeventargs

Scheduled Pinned Locked Moved Managed C++/CLI
tutorialhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rose196
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • R rose196

      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

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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 )

      R 1 Reply Last reply
      0
      • C Christian Graus

        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 )

        R Offline
        R Offline
        rose196
        wrote on last edited by
        #3

        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,

        R 1 Reply Last reply
        0
        • R rose196

          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,

          R Offline
          R Offline
          rose196
          wrote on last edited by
          #4

          Hai Thanks, The problem is solved.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups