It is possible to comment out a section of code by inserting the "//" (using C# as an example) at the beginning of each line in that particular section. The interop call LockWindowUpdate can be used to pause and resume painting while the lines are being commented.
// Lock Painting
for (int i=1; i<=this.editControl1.PhysicalLineCount; i++)
// Resume Painting
' Lock Painting
Dim i As Integer
For i = 1 To Me.editControl1.PhysicalLineCount
Me.editControl1.InsertText(i, 1, "// ")
' Resume Painting
Please refer to the test sample below that provides more information in this regard.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.