Results 1 to 5 of 5

Thread: keypress event question

Threaded View

  1. #1

    Thread Starter
    Registered User jkw119's Avatar
    Join Date
    Oct 2001
    Location
    Pittsburgh
    Posts
    256

    keypress event question

    I have a question, lets say i have the following

    VB Code:
    1. Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
    2.         If e.KeyChar = "=" Then
    3.             MsgBox("You Pressed "="")
    4.         End If
    5. End Sub

    how can i do the same thing with enter? if anyone knows how to do this, i would greatly appreciate it.

    thanks,
    Last edited by jkw119; Sep 26th, 2002 at 08:56 AM.

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