Yep, that works. However, if it were me I would do this:
Code:int i = 1; List<string> lines = new List<string>(); while( i < 6 ) { lines.Add( String.Format( "current value of n is {0}", n++ ) ); } textbox1.Lines = lines.ToArray();
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 8 of 8
Thread: WPF IterationThreaded View
|
Click Here to Expand Forum to Full Width |