easy textbox question

G

Guest

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
 
J

John Kn [MS]

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?= <[email protected]>
Subject: easy textbox question
Date: Tue, 29 Nov 2005 08:29:13 -0800
Lines: 6
Message-ID: <[email protected]>
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 (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

{\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: (e-mail address removed)\par
\f1\par
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top