Posted 19 years ago
by Rick
-
Developer,
Visual Software Systems LLC
Hi,
I'm receiving an ArgumentOutOfRangeExcpetion using the SelectedView.UncommentLines method. I'm able to consistently recreate this error when the cursor is in the first column on any line other than the first line in the document. It functions perfectly on line 1. On lines other than line 1, the method functions perfectly as long as the cursor is in any column other than the first column.
Here's a partial listing of the error message:I'm using VS 2005, .Net 2.0, SE 3.1.0210 for .Net 2.0 on Win XP, SP2.
Thanks... Rick
I'm receiving an ArgumentOutOfRangeExcpetion using the SelectedView.UncommentLines method. I'm able to consistently recreate this error when the cursor is in the first column on any line other than the first line in the document. It functions perfectly on line 1. On lines other than line 1, the method functions perfectly as long as the cursor is in any column other than the first column.
Here's a partial listing of the error message:
System.ArgumentOutOfRangeException was unhandled
Message="Length cannot be less than zero.
Parameter name: length"
ParamName="length"
Source="mscorlib"
Thanks... Rick