PC Review


Reply
Thread Tools Rate Thread

How can I set the character that a TextBox may Interpret as NewLine?!

 
 
Leon_Amirreza
Guest
Posts: n/a
 
      19th Jan 2010
Hi,
how can I have a .Net Control like (TextBox or Label) to interpret a unicode
character (or a sequence off characters) to be interpreted as newline?

I need Somthing like this:

textBox1.NewLineString = "+\";
textBox1.Text = "Jack+\Bill";

to be shown like this inside the textbox:

Jack
Bill

 
Reply With Quote
 
 
 
 
Family Tree Mike
Guest
Posts: n/a
 
      19th Jan 2010


"Leon_Amirreza" wrote:

> Hi,
> how can I have a .Net Control like (TextBox or Label) to interpret a unicode
> character (or a sequence off characters) to be interpreted as newline?
>
> I need Somthing like this:
>
> textBox1.NewLineString = "+\";
> textBox1.Text = "Jack+\Bill";
>
> to be shown like this inside the textbox:
>
> Jack
> Bill
>


That's a really strange request. Here is why.

Suppose, for whatever reason, your new line character is set to "+\". Now a
user types in the textbox "We have 10 oranges +\12 bananas", and reallize
they meant "10 oranges + 12 bananas". You need to detremine they deleted the
newline, and put back the first portion of the newline string. I'm sure it
can be done somehow, but is this something your users really need?

Mike
 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      19th Jan 2010
Hi,

What if you just replace +\ with \n ?

If you really want to keep this particular sequence you could also implement
this in your own textbox control to do the transform when the text property
is written/read...

--
Patrice


"Leon_Amirreza" <(E-Mail Removed)> a écrit dans le message de groupe de
discussion : 94EC8508-3816-4CC7-9079-(E-Mail Removed)...
> Hi,
> how can I have a .Net Control like (TextBox or Label) to interpret a
> unicode character (or a sequence off characters) to be interpreted as
> newline?
>
> I need Somthing like this:
>
> textBox1.NewLineString = "+\";
> textBox1.Text = "Jack+\Bill";
>
> to be shown like this inside the textbox:
>
> Jack
> Bill



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
newline character John Grandy Microsoft C# .NET 4 23rd Aug 2005 09:24 PM
newline character in databound textbox Etai Margolin Microsoft Dot NET Compact Framework 0 3rd Aug 2004 10:24 AM
newline character in a multiline textbox? =?Utf-8?B?c3RldmVianU=?= Microsoft Dot NET Compact Framework 2 28th Apr 2004 02:41 AM
newline character? Rudi Ahlers Microsoft ASP .NET 2 28th Mar 2004 06:31 PM
Is there a newline character? Meilu Microsoft Access VBA Modules 3 16th Aug 2003 06:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:59 AM.