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
I had reverted (through source control) changes to my project file, which removed the file from my solution (specifically the .Designer file). However, I still had the file open in Visual Studio and attempting to show the designer for it caused this error.
I clicked the "Show All Files" button at the top of Solution Explorer, found the files that weren't included. Right-clicking and selecting "Include in Project" and rebuilding fixed the issue for me.