On occasion, I get the following error in design mode of some user controls in Visual Studio 2008:
The file 'UserControl.vb' does not support code parsing or generation because it is not contained within a project that supports code.
It doesn't happen on a consistent basis, but it happens enough to be annoying. Are there any common causes of this error?
And yes, it is in a project that supports code - last I checked, WinForms projects typically have code in them!
See Question&Answers more detail:os