473,378 Members | 1,512 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,378 software developers and data experts.

how to display text in new line in a TextBox in Vb.NET?

nsj
how to display text in new line in a TextBox in Vb.NET?
Jul 21 '05 #1
2 13166
On Thu, 21 Apr 2005 07:12:02 -0700, nsj
<ns*@discussions.microsoft.com> wrote:
how to display text in new line in a TextBox in Vb.NET?


Try (C#):
myTextBox.AppendText("\r\nThis is on a new line.");
myTextBox.Focus();

The new text may not show immediately if the TextBox does not have the
focus.

rossum
The ultimate truth is that there is no ultimate truth
Jul 21 '05 #2
myTextBox..text="HelloWorld"+vbnewline"Next Line"

--
WebSite : http://soonlee.agreatserver.com
"rossum" <ro******@coldmail.com> wrote in message
news:ev********************************@4ax.com...
On Thu, 21 Apr 2005 07:12:02 -0700, nsj
<ns*@discussions.microsoft.com> wrote:
how to display text in new line in a TextBox in Vb.NET?


Try (C#):
myTextBox.AppendText("\r\nThis is on a new line.");
myTextBox.Focus();

The new text may not show immediately if the TextBox does not have the
focus.

rossum
The ultimate truth is that there is no ultimate truth

Jul 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Majek | last post by:
I have an ASPX application where I display a series of questions in a mult-line textbox with several blank lines between the questions so the user can supply answers. I would like to display the...
2
by: John Carnahan | last post by:
I have a problem writing the text from a multi-line textbox to the Sql Server db. If the user sends a vbcrlf (enter key) in the middle of the entered text, the text gets truncated at the vbcrlf...
2
by: nsj | last post by:
how to display text in new line in a TextBox in Vb.NET?
0
by: nikou_70 | last post by:
Hi, I have a search page, after search returns value I want to display fields in text box instead of table. Thanks
4
by: zoneal | last post by:
I have a multi line textbox with word wrap enabled. Is it possible to write code to check if the text of the textbox has continued into the next line and then count the amount of lines? If not...
9
by: Edward | last post by:
IE6 only displays certain text on my site if you mouse over it (!). I reduced the HTML down to this code below which still shows this effect/bug. My temporary solution was to take out all the...
3
by: remya1000 | last post by:
i'm using ASP with MSAccess as database. i have two buttons and two textbox in my page. when i press my first button (First month) i need to display the current month in one textbox and last one...
1
by: naveenreddygopu | last post by:
hi, guys there is small problem in my application, if i typed text in textbox like general letter format , that is also stored in database as same format ,upto here fine, when i retrive...
4
by: singh79 | last post by:
Hi Pls Any One Solve My Problem. One Text box for Enter user Name.My Requirement is if web application is Run then, In Textbox Display "Pls Enter User name" If Click By Mouse the text Is...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.