Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Errors in Windows Forms controls in designer view

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!

like image 309
Lurker Indeed Avatar asked Dec 15 '08 19:12

Lurker Indeed


People also ask

Can't see Windows form Designer?

We need to enable the designer in Visual Studio. Go to Tools > Options > Environment > Preview Features and select the Use the preview Windows Forms designer for .

What is design time error?

Recipe design-time errors refer to errors which are caught while building a recipe. These errors typically show up when you select recipe test or recipe start, and prevent you from testing or starting the recipe until they are resolved.


1 Answers

It is a bug in VS. It happens in VS2005 as well.

Don't waste your time: close VS, open it again and everything should work fine.

like image 195
andrecarlucci Avatar answered Sep 23 '22 03:09

andrecarlucci