954,541 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to prevent beep sound when sending the Enter key in NumericUpDown Box?

How can I prevent the beep sound when I use the SendKey command in
NumericUpDown1 Box?

Here is the code:

Private Sub NumericUpDown1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles NumericUpDown1.KeyPress
        Static SAME As Short = TB2
        TB1 = SAME - NumericUpDown1.Value
        If e.KeyChar >= "0" And e.KeyChar <= "9" Then
            SendKeys.Send("ENTER")
        End If
        TextBox1.Text = TB1
    End Sub
ak24
Newbie Poster
17 posts since Dec 2010
Reputation Points: 23
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: