473,395 Members | 2,006 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,395 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 13171
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.