Subject: Scrolling into TextBox
Posted By: adyrotaru Post Date: 1/11/2006 7:39:39 AM
Hi

I have a form with TextBox controls on it.
When some TextBox control receives focus, the entire text inside the textbox is selected.
Now, the problem is when the text is too long and it doesn't fit inside the textbox, the user will only see the last part of the text, that is, the content of the textbox scrolls to the end.
I need a method to scroll back the content to the beginning of the control, so that the user visualizes the first portion of the text.

Thanks.


Reply By: sands.msk Reply Date: 1/28/2006 7:38:00 AM
hi

u can use the asp:textbox and set the property "textmode" to "MultiLine"

and set the

  <asp:TextBox ID="Value2"
                    Columns="2"
                    MaxLength="3"
                    Text="1"
                    runat="server"
        textmode="MultiLine"
/>

hope this will help.

u can check out this link for more info

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebuiwebcontrolstextboxclasstopic.asp

Reply By: sands.msk Reply Date: 1/28/2006 7:39:38 AM
just a correction

<asp:TextBox ID="Value2"
                    Columns="20"
                    Rows="3"
                    Text="1"
                    runat="server"
        textmode="MultiLine"



Go to topic 39269

Return to index page 384
Return to index page 383
Return to index page 382
Return to index page 381
Return to index page 380
Return to index page 379
Return to index page 378
Return to index page 377
Return to index page 376
Return to index page 375