RichTextBox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Taymoor Khan
    New Member
    • Mar 2007
    • 1

    #1

    RichTextBox

    ASA i am working in VB first time,i have a problem while working with RitchTextBox, i want that whenever i press any key first i should analyze and then it display in RichTextBox if i want's plz help me
  • AricC
    Recognized Expert Top Contributor
    • Oct 2006
    • 1885

    #2
    Originally posted by Taymoor Khan
    ASA i am working in VB first time,i have a problem while working with RitchTextBox, i want that whenever i press any key first i should analyze and then it display in RichTextBox if i want's plz help me
    You need to capture the keypress event.

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by AricC
      You need to capture the keypress event.
      Also consider the KeyDown and/or KeyUp events, if you need information such as the state of the Shift, Ctrl or Alt keys. But if you can use it, KeyPress will be much simpler.

      Comment

      • vijaydiwakar
        Contributor
        • Feb 2007
        • 579

        #4
        Is better to use keydown event insted of Keypress/Keyup event

        Comment

        • Killer42
          Recognized Expert Expert
          • Oct 2006
          • 8429

          #5
          Originally posted by vijaydiwakar
          It Is better to use keydown event instead of Keypress/Keyup event
          Not necessarily.

          The functionality is slightly different. Which one is better depends on exactly what you need from it. Which is the point I made in my previous post.

          Comment

          Working...