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. textchange event

textchange event

Scheduled Pinned Locked Moved Managed C++/CLI
2 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 textchange eventhandler in richtextbox. I just want to know currently what key is pressed by the user. for knowing that is any property is available. can you tell me. Thanks

    T 1 Reply Last reply
    0
    • R rose196

      Hai I am using textchange eventhandler in richtextbox. I just want to know currently what key is pressed by the user. for knowing that is any property is available. can you tell me. Thanks

      T Offline
      T Offline
      teejayem
      wrote on last edited by
      #2

      if you want to get the key that was pressed you should use the KeyPress event. the second parameter (KeyPressEventArgs) you can use to get the keychar that was pressed.

      	Void richTextBox1\_KeyPress(Object^  sender, KeyPressEventArgs^  e) {
      			 char charPressed = (char)e->KeyChar;
      	}
      

      Don't be overcome by evil, but overcome evil with good

      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