This is in .NET and it seems it was just the Wrox sample code which was smathered with comments that was causing it with invisible data I'm sure.
>>I am looking at some sample programs with lots of:
>>vb type comment lines like:
>>' this does so and so
>>
>>until I delete some of these lines, VS ide is wrapping all the code formatting into garbage upon saving. The code then crashes with errors upon running. Normal Syntax coloring does not work after a point in the code where there is one of these bad comments, and so if I find the bad comment and delete it, everything is back to normal operation.
>>
>>Is anyone having this problem? It is a real pain.
>>
>>Any ideas?
>
>
>Never seen something like this.
>
>I suggest that you check for viruses, re-install the latest VB SP (5). Before doing this you should try to open your code module (form, class, standard module, ... or anything else) in a simple editor (like Notepad - my favorite!!!) to see if there are some ugly characters surrounding the evil lines.