In my application I have some single lined textboxes I am using for user input. When the user presses enter, I have an event that handles it. Everything works perfectly, except for the fact that every time the user pushes enter the default "ding" sound plays, because I assume that since the textbox is single line only, enter is not accepted (and therefore pushing enter triggers the "ding" sound). How do I keep this from happening? It gets to be pretty annoying. Ideas or suggestions appreciated. Thanks
Thu, 06 Oct 2005 08:20:52 GMT
Bill #2 / 2
Single line textbox problem
Seems I solved my own problem
Using the keypress event handler instead of the keydown one, and then setting e.Handled to true makes the ding go away.