By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,833 Members | 2,074 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,833 IT Pros & Developers. It's quick & easy.

easy textbox question

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.