I have a text box(multiline=true) and want to have two tow extra lines on the
top.
how can i do this.


Thanks in advance.
V Suresh

Re: How to line feed in a text box by Alex

Alex
Tue Aug 24 02:33:31 CDT 2004

C# : "\r\n"
VB: vbCrLf



--
Alex Feinman
---
Visit http://www.opennetcf.org
"Suresh" <Suresh@discussions.microsoft.com> wrote in message
news:D7EEE68C-A41E-41F2-B748-D50B4FD592E6@microsoft.com...
>I have a text box(multiline=true) and want to have two tow extra lines on
>the
> top.
> how can i do this.
>
>
> Thanks in advance.
> V Suresh



Re: How to line feed in a text box by Alex

Alex
Thu Sep 02 10:25:44 CDT 2004

In VB you should be using vbCrLf constant:
"Hi," + vbCrLf + " how are you?"


--
Alex Feinman
---
Visit http://www.opennetcf.org
"Suresh" <Suresh@discussions.microsoft.com> wrote in message
news:0B78D643-E1DA-4AA2-8A2B-DAF7505EC42E@microsoft.com...
>I tried using '\r\n" for new line. And it works fine for my PDA.
> Now the problem is when i view the save message in web application
> developed
> using asp.net (vb). I view the message which this character
> Sample Data
> "Hai,\r\n how are U"
> How to go about?
>
>
> "Suresh" wrote:
>
>> I have a text box(multiline=true) and want to have two tow extra lines on
>> the
>> top.
>> how can i do this.
>>
>>
>> Thanks in advance.
>> V Suresh



Re: How to line feed in a text box by Suresh

Suresh
Thu Sep 02 23:07:03 CDT 2004

The current code written for both PDA(C#) and Web(VB) works fine as it is.
The problem is when i sync the data from PDA to the Web SQL server the web
application is showing these (\r\/n) characters.

Do u mean i need to replace every time to vbCrlf while saving in PDA.
And while displaying it in PDA again i have to replace vbCrlf to \r\n.

Is there a better way to solve this. Can i place Chr(13) instead. (Will that
work out, i have not tried)


"Alex Feinman [MVP]" wrote:

> In VB you should be using vbCrLf constant:
> "Hi," + vbCrLf + " how are you?"
>
>
> --
> Alex Feinman
> ---
> Visit http://www.opennetcf.org
> "Suresh" <Suresh@discussions.microsoft.com> wrote in message
> news:0B78D643-E1DA-4AA2-8A2B-DAF7505EC42E@microsoft.com...
> >I tried using '\r\n" for new line. And it works fine for my PDA.
> > Now the problem is when i view the save message in web application
> > developed
> > using asp.net (vb). I view the message which this character
> > Sample Data
> > "Hai,\r\n how are U"
> > How to go about?
> >
> >
> > "Suresh" wrote:
> >
> >> I have a text box(multiline=true) and want to have two tow extra lines on
> >> the
> >> top.
> >> how can i do this.
> >>
> >>
> >> Thanks in advance.
> >> V Suresh
>
>
>