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?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.