Results 1 to 4 of 4

Thread: Command Button Problem

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2001
    Location
    Maine
    Posts
    214

    Command Button Problem

    I'm working on a program where you type in a message into a RichTextBox and I want to make so when you press enter it does the info under the cmdSay_Click event. I have the command buttons Defualt sets as true but it still doesn't work. It worked before when I had a regular text box, could that be the problem or is it something else?

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171
    Check the KeyPress event and see if KeyAscii = vbKeyReturn. Then call the sub.


    Has someone helped you? Then you can Rate their helpful post.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2001
    Location
    Maine
    Posts
    214
    o thnx a bundle that worked wonders

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171


    Has someone helped you? Then you can Rate their helpful post.

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