CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2008
    Posts
    20

    How to trap space key in Rich textbox?

    How to trap space key in Rich Textbox?
    Thank you.

  2. #2
    Join Date
    May 2006
    Location
    Norway
    Posts
    1,709

    Re: How to trap space key in Rich textbox?

    Quote Originally Posted by dorjoo
    How to trap space key in Rich Textbox?
    Thank you.
    Handle the KeyDown event and check for space key:
    Code:
    if (e.KeyCode == Keys.Space)
                {
                    //spacebar is hit
                }
    Laitinen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured