Results 1 to 1 of 1

Thread: [SOLVED]Textbox.Lines property

Threaded View

  1. #1

    Thread Starter
    Lively Member mindloop's Avatar
    Join Date
    Mar 2004
    Posts
    64

    Resolved [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
    Last edited by mindloop; Apr 21st, 2005 at 03:50 PM. Reason: [SOLVED] http://www.vbforums.com/showthread.php?p=1989241&posted=1
    ehmm...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width