Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 02-18-2004, 08:42 PM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
windows form textbox return character

my textbox is set to multiline and to accept returns, but i can't get the text to go to the next line.

i've tried \n and \r and \r\n

any ideas?
__________________
Mike
sde is offline   Reply With Quote
Old 05-14-2004, 04:02 PM   #2 (permalink)
rarmknecht
Registered User
 
Join Date: May 2004
Location: US
Posts: 3
rarmknecht is on a distinguished road
Can you post the context in which it's used? \r\n work's for me.

Here's the way I used it:
Code:
private void Form1_Load(object sender, System.EventArgs e)
		{
			this.textBox1.Text = "This is the first line\r\nAnd this the second!";
		}
rarmknecht is offline   Reply With Quote
Old 05-14-2004, 06:08 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,475
sde is on a distinguished road
thanks for the reply =) .. yes, that was the format i was using. i haven't tried it again in a while. i'll try again tonight.
__________________
Mike
sde is offline   Reply With Quote
Old 05-29-2004, 09:11 PM   #4 (permalink)
rdove
Masked Moderator
 
rdove's Avatar
 
Join Date: May 2002
Location: Indianapolis, IN
Posts: 260
rdove is on a distinguished road
This is why vbcrlf is the shizzle
__________________
~Ryan

rdove is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
EMERGENCY: Dynamic form processing DavH27 PHP 8 10-27-2004 07:52 PM
OpenGL.dll Mr.Anderson Platform/API C++ 3 08-13-2004 10:07 AM
setting the focus on a windows form with c# sde MS Technologies ( ASP, VB, C#, .NET ) 0 07-28-2003 06:14 AM


All times are GMT -8. The time now is 07:27 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting