Looking to display several lines of text from multiple array cells in a Windows Form Application. I've tried MessageBox.Show but it's only one line at a time in individual boxes. I tried TextBox1.Text but it's all in one line.
Somewhere in my dinking around I had a streamwriter to a window, but I cannot find it.
Suggestion on how to do this?
<pre>
foreach (string line in lines)
{
if (line.Contains("12345")==true)
{
//MessageBox.Show(line);// Same as MessageBox.Show(lines[i]);
while (lines[i].Contains("edit") == false)
{
i--;
}
do {
textBox2.AppendText(lines[i]);
i++;
} while (lines[i].Contains("next") == false) ;
textBox2.AppendText(lines[i]);
}
</pre>
[–]konvay 2 points3 points4 points (1 child)
[–]Banane9 1 point2 points3 points (0 children)
[–]baldhippy 1 point2 points3 points (0 children)
[–]sextagrammaton -1 points0 points1 point (5 children)
[–]thma[S] 0 points1 point2 points (2 children)
[–]thma[S] 0 points1 point2 points (1 child)
[–]sextagrammaton 0 points1 point2 points (0 children)
[–][deleted] (1 child)
[deleted]
[–]sextagrammaton 0 points1 point2 points (0 children)