Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The accept button and the multi-line textbox
Message
From
31/01/2007 14:05:06
James Hansen
Canyon Country Consulting
Flagstaff, Arizona, United States
 
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01190839
Message ID:
01191050
Views:
9
This message has been marked as the solution to the initial question of the thread.
Einar,

Does the Textbox.AcceptsReturn property help?

...Jim

>Well the title says it all :)
>I have a form with a multi-line textbox on it and I have assigned an accept button to the form. So I start typing in my multi-line textbox and I press the enter key, because I want the text to start on a new line, but that is not what happens, instead the accept button's code fires and closes the form.
>
>What I have done in some applications so far is to not use the accept button form property when the form has a multi-line textbox on it, but I kinda like the accept button feature.
>
>Anywho any thoughts on the subject are welcome. Do you use the accept button property? What do you do when you have a multi-line textbox on the same form?
>
>Thanks,
>Einar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform