Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2006

Tip: Looking for answers? Try searching our database.

Textbox Control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Charles A. Lackman - 11 Aug 2006 00:44 GMT
Hello,

I have a textbox with data in it that extends beyond the size of the text
box.  I am looking for a way to display the data in the textbox with the
data scrolled all the way to the right:

Before:
-------------------
| Peter Piper|
-------------------

After What I Want:
------------------
|led Pickels.|
------------------

The text is justified to the right (I already tried it with setting the text
justification to the right with no luck).

Thanks,

Chuck
Dave Sexton - 11 Aug 2006 01:39 GMT
Hi Charles,

Didn't you mean |led Peppers.|?

You can use the following code to programmatically set the position of the cursor in the TextBox to the end of the line:

txtRhymes.SelectionStart = txtRhymes.TextLength

TextAlign, as you found out, deals with appearance only and not behavior.

HTH

Signature

Dave Sexton

> Hello,
>
[quoted text clipped - 18 lines]
>
> Chuck
Charles A. Lackman - 11 Aug 2006 02:27 GMT
Thank You,

Chuck

Hi Charles,

Didn't you mean |led Peppers.|?

You can use the following code to programmatically set the position of the
cursor in the TextBox to the end of the line:

txtRhymes.SelectionStart = txtRhymes.TextLength

TextAlign, as you found out, deals with appearance only and not behavior.

HTH

Signature

Dave Sexton

> Hello,
>
[quoted text clipped - 19 lines]
>
> Chuck

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.