[SOLVED]Textbox.Lines property
Hey, i need to simulate a console in my prog and am using for this a textbox to display some information. I'm using the following code
Code:
private int lineCount=0;
private void addLine(string newline)
{
if (lineCount >=20)
{
for (int i=0;i<20;i++)
{
pInfo.Lines[i]=pInfo.Lines[i+1];
}
pInfo.Lines[20]=newline;
}
else
{
pInfo.Lines[lineCount]=newline;
lineCount++;
}
}
The problem is that mytextbox.Lines[lineindex]=somestring just dont do anything it's like this property is readonly.
any workarounds ? is this the way textbox.lines[] property should behave ?
EDIT:
solved: http://www.vbforums.com/showthread.p...89241&posted=1