Single line textbox problem 
Author Message
 Single line textbox problem

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  
 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.

Thu, 06 Oct 2005 08:41:01 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Reading a single line in a multiline textbox

2. >2K in single line TextBox!

3. textbox enabling: single line printing

4. Right-aligned single-line TextBox

5. Dim multiple lines or single line

6. Problem with Multi-Line Textbox

7. Default button causing problem for multi-line textbox

8. TextBox -- Multi-Line & Problem with Back Color

9. Textbox/label which add a new line and remove the last line

10. Read a MultiLine textbox line by line?

11. Limit a multi-line textbox to 10 lines ?

12. Limitting line length of each line within multiline textbox


Powered by phpBB® Forum Software