Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
.NET Framework 1.x For discussing versions 1.0 and 1.1 of the Microsoft .NET Framework.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 1.x section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 11th, 2006, 08:39 AM
Authorized User
 
Join Date: Jan 2004
Location: Cluj-Napoca, Cluj, Romania.
Posts: 11
Thanks: 1
Thanked 0 Times in 0 Posts
Send a message via Yahoo to adyrotaru
Default Scrolling into TextBox

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.


__________________
smile... tomorrow will be better
  #2 (permalink)  
Old January 28th, 2006, 08:38 AM
Registered User
 
Join Date: Jan 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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/de...classtopic.asp

  #3 (permalink)  
Old January 28th, 2006, 08:39 AM
Registered User
 
Join Date: Jan 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

just a correction

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




Similar Threads
Thread Thread Starter Forum Replies Last Post
scrolling red_fiesta Classic ASP Professional 5 November 2nd, 2006 12:35 PM
scrolling carro123 Javascript How-To 0 June 6th, 2005 12:29 PM
Scrolling Textbox interrupt Javascript How-To 6 January 11th, 2005 10:29 AM
Masked TextBox & formatting TextBox melvik C# 1 September 22nd, 2003 11:01 AM
scrolling smn2 Classic ASP Professional 1 August 28th, 2003 06:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.