Ok. I write some lines to a file.
Then when i try to get them displayed in a listBOX........
I got them but on a Single-LINE[Row].
What property shall i change to get that text displayed on more Lines
and not on a ...Long Long single Row ??
Here is some code I wrote :
DataSet DES=new DataSet();
XmlTextReader XRR=new XmlTextReader("D:\\BOTOLA_MyDocument_Projects\\My Documents\\Visual Studio 2005\\Projects\\cs_XML_World\\cs_XPATH_preCOMPILATION\\JO_Co.xml");
DES.ReadXml(XRR);
StringWriter SW=new StringWriter();
DES.WriteXml(SW);
LB1.Items.Add(
Convert.ToString(SW));
[Text displays ona single line in my LB1[ListBOX]]
HELP !
Thanks.
Johnny GCPosted May 24, 2008, 10:43 AM
in your case you are adding ONE line to the list box, you might wanna add a range by having the string be splitted like
Convert.ToString().Split('\n') for example which results a string array
hope this helps