warrenk
Posts: 4
|
Posted: 08/17/2013, 6:09 AM |
|
I have a few questions with the text box that I hope someone can help me with:
1) When I hit enter in the text box, I want to go to a new line. Currently hitting enter submits my form.
2) Is there anyway to vertically align the text box to the top. Right now it aligns to the center.
Thanks for any help!
Warren
|
|
|
DataDoIT
|
Posted: 08/17/2013, 11:03 AM |
|
1) Change your textbox control to a textarea.
2) Your textbox will inherit the properties of it's parent element.
Let's assume your parent element is a table cell (<td>). So set the
style of the table cell with:
<td style="VERTICAL-ALIGN: top">{YourTextBox}</td>
|
|
|
anthonyzz
Posts: 19
|
Posted: 05/08/2014, 9:58 PM |
|
I am recently also doing some studies on the textbox control, hope these materials be hlepful to your situation:
http://www.kettic.com/winforms_ui/csharp_guide/editor_textbox.shtml
http://www.kettic.com/winforms_ui/csharp_guide/editor_t...t_started.shtml
_________________
no more |
|
|
|