This may be a duplicate :(

N

Nicholas Beenham

Thanks for the help guys though now i have another related problem when
trying to AppendText to a multiline textbox.

An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred
in mscorlib.dll

Additional information: Index and length must refer to a location within the
string.

This is the error I get when trying to add text to a multiline textbox

Many many thanks

Any ideas on how to correct this
 
M

Morten Wennevik

I'm guessing you are trying to add text from an array, and from a position
in that array that is "Out of Range".
Typically negative positions or position larger or equal to the length of
the array (highest position is length - 1).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top