Errors with Microsoft "WinForms Series 1: Graphics Device"

Viewed 518

I have a problem with this sample. I just downloaded it and run it (Visual Studio 2010). I haven't touched anything.enter image description here

Sorry for the Language, it is in italian. From top to bottom it says:

  • To avoid the lost of information before load the designer Window, it is necessary to solve these errors:
  • Can't visualize the designer Windows for the file, because no class can be designed. The designer utility has examinated these classes: SpinningTriangleControl --- Can't load its base class "WinFormsGraphicsDevice.GraphicsDeviceControl". Verify that there is a reference to the assembly and that all projects are generated.
  • Below it says the same

Note that:

  • If I compile and run, it works.
  • In the toolbar of the ide, sometimes (I didn't understood when), there are the two controls created with the sample, SpinningTriangleControl and SpriteFont; sometimes they disappear. When this happens, the controls are also removed from the MainWindow form of the project!
  • I don't know if it is important, but I noticed that the control disappears often and removes itself from the xxx.designer.cs while I add some new control, such as toolstripmenu, etc, or I add some new Event Handler for some control.

I really don't understand what's happening.

Edit By JT: The repro is here: sdrv.ms/1kIhI5o

Repro steps:

Open solution
Select the flowLayoutPanel1 control
Run the application
Stop the application
Now try to select the gameWrapper!

Result:
The gameWrapper control cannot be selected anymore, it doesn't even show up in the Property Windows dropdownlist of form controls!

7 Answers
Related