el walter

el walter

  • NA
  • 1
  • 1.9k

Problem with VB to C# code

Dec 27 2010 9:40 AM

First of all sorry my bad english xP...

I'm been traspasing some VB code to C# and i get this problem:

i have a textbox (txtGenerarTxt) and i need to get a code (like 98000010) with a newline

txtGenerarTxt.Text = txtGenerarTxt.Text + (Convert.ToChar(LCR)) + Environment.NewLine ;

in VB, has a vbCrLf to make a \r\n (i suppose) but i get this :

"9800001\r\n"  and i need a new line (that i get with vbCrLf) i been trying with; Environment, "\r\n", char(13)... etc

the multiline option is true

Thanks =)

I hope you understand my bad English xD

 

This is what i get from VB app

txtVB.JPG

 

and this is what i get from C#

txtCsharp.JPG


i found the problem, and it was in other part of the code... sorry and thanks for the reply


Answers (1)