473,406 Members | 2,710 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,406 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 13174
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.