I'm trying to write a simple Windows Forms program ( CLI/C++) . In the Form1 class I declared a private int, but the forms designer view hates it. Produces this error:

C++ CodeDOM parser error: Line: 195, Column: 15 --- Unknown type 'int'. ...

The program compioles with 0 errors and 0 warnings, its just the form designer craps out, and intellsense doesn't like it either. If I comment out the declaration the forms designer and intellsense are ok, but of course the program won't compiler because of uneclared int object.

I've been googling for this problem but have been unable to find any mention of it. Also unable to find a Microsoft forum for vs 2011 beta, maybe there is one but its not a public forum.

Has anyone else tried something similar?

6 Years
Discussion Span
Last Post by DavidB
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.