473,325 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 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 1459
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Hazzard | last post by:
I just realized that the code I inherited is using all asp.net server controls (ie. webform controls) and when I try to update textboxes on the client side, I lose the new value of the textbox when...
1
by: TN Bella | last post by:
Hi! The following loop works great, but I want to add the following to it, but not sure how since the others are textboxes and this is a dropdownlist (ddl). txtinvloc.SelectedItem.Value ...
3
by: BY | last post by:
Hi, This is my code and it works fine... Dim Conn As OleDb.OleDbConnection Dim Cmd As OleDb.OleDbCommand Dim Reader As OleDb.OleDbDataReader Dim i As Integer Conn = New...
1
by: Mad Scientist Jr | last post by:
can someone explain how to simply populate a grid in .net ? the way i understand it, there is no more msflexgrid, and instead is this new control that has to be tied to a dataset, and it is a real...
2
by: kaosyeti | last post by:
it may be because i'm having a BAD day but i can't come up with an easy way to do this... i want to have a form for recording one department's yearly forecasted data. what i have is a column of...
7
by: jimi_xyz | last post by:
I am kind of new to C sharp; I have a quick question I have multiple text boxes 12 of them to be exact. What I want to do is fill them with values that are in a array of integers. The way I am...
1
by: mouac01 | last post by:
How do I get a label to be on top of a text field? <label>Login:<input type="text" name="login"></label> <label>Password:<input type="password" name="password"></label> generates this... ...
4
by: robert.b.walden | last post by:
Hello, Easy question from a newbie. I have text boxes which collect users input and on the click of a button do some calculations and output to another text box. I need to easily convert the...
1
by: JackInDaBox | last post by:
Hello I am new at ruby on rails and have what i hope is a simple question. Say I have a DB with animal names and an id. I am using active scaffold. once I click on the edit to edit any animal name...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.