ak24 13 Newbie Poster

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
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.