473,320 Members | 2,158 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,320 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 13160
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: 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...
1
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: 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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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...

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.