When auto-indentation gets messed up in code, the most common problem is an
error in the code and the IDE can't figure out what the indentation is
supposed to be. A common problem is an unclosed bracket or parenthesis, a
missing semi-colon at the end of a line (C++, C#, J#, etc. not VB), or an
unterminated string.
Fixing the bug does not fix the indentation. You can format the code again
by highlighting all the code in question, then press CTRL-K and holding the
CTRL key press F (for Format).
Hope this helps,
Dale

Signature
Dale Preston
MCAD C#
MCSE, MCDBA
> I am working in a Visual Basic application, modifying existing projects and
> code. For the most part, the auto-indent seems to be going what it's
[quoted text clipped - 10 lines]
> Thanks!
> Dave P.
michael - 30 Sep 2007 13:43 GMT
Glad you posted this. Never would have found it. This solution rocks!

Signature
Michael
> When auto-indentation gets messed up in code, the most common problem is an
> error in the code and the IDE can't figure out what the indentation is
[quoted text clipped - 24 lines]
> > Thanks!
> > Dave P.