Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27517

VS 2010 [RESOLVED] blocking a keystroke

$
0
0
Hello
I have had no luck finding what I want on the web, maybe you can help!
My program has a multi-line textbox. The user must not use the enter key!
I have tried lots of things to no avail. I am hoping a line or two in the following will solve my problem.
Code:

Private Sub quanityTextBox_KeyDown(sender As Object, e As System.Windows.Forms.KeyEventArgs) Handles quanityTextBox.KeyDown
        If e.KeyCode = Keys.Enter Then


        End If
    End Sub

Thanks
George

Viewing all articles
Browse latest Browse all 27517

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>