471,306 Members | 1,226 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

easy textbox question

Hi,
If there's a textbox and the text entered is longer than what's visible (the
textbox length), how do you make it so that the beginning chunk of text is
visible (instead of the last part of it)?
Thanks again!!!
Mel
Nov 29 '05 #1
1 1376
Mel,

Try making this declaration when initializing your textbox:
txtMyTextBox.SelectionStart = 0;

Thanks,

John
--------------------
Thread-Topic: easy textbox question
thread-index: AcX1Agjkm197HR3mSXKG/Y4INnkqlw==
X-WBNR-Posting-Host: 152.160.34.122
From: =?Utf-8?B?bWVsYW5pZWFi?= <me*******@discussions.microsoft.com>
Subject: easy textbox question
Date: Tue, 29 Nov 2005 08:29:13 -0800
Lines: 6
Message-ID: <4B**********************************@microsoft.co m>
MIME-Version: 1.0
Content-Type: text/plain;
charset="Utf-8"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Content-Class: urn:content-classes:message
Importance: normal
Priority: normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Newsgroups: microsoft.public.dotnet.languages.csharp
NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGXA03.phx.gbl
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.languages.csharp:367948
X-Tomcat-NG: microsoft.public.dotnet.languages.csharp

Hi,
If there's a textbox and the text entered is longer than what's visible (thetextbox length), how do you make it so that the beginning chunk of text is
visible (instead of the last part of it)?
Thanks again!!!
Mel


{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl {\f0\fnil\fprq2\fcharset0
MS Sans Serif;}{\f1\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.21.2500;}\viewkind4\uc1\pard\f0\fs20 Cheers,\par
\par
johnKn [MS-SDK]\par
\par
\par
\par
-Please do not send email directly to this alias. This alias is for \par
newsgroup purposes only\par
\par
-This posting is provided "AS IS" with no warranties, and confers no
rights.\par
\par
-To provide additional feedback about your community experience please send
\par
e-mail to: sd*****@microsoft.com\par
\f1\par
}

Nov 30 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by TN Bella | last post: by
1 post views Thread by Mad Scientist Jr | last post: by
2 posts views Thread by kaosyeti | last post: by
7 posts views Thread by jimi_xyz | last post: by
1 post views Thread by mouac01 | last post: by
4 posts views Thread by robert.b.walden | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.