From: Craig on
Roberto,

My error was on a property that used a class that I wrote. To get rid of
the designer error, I had to do the following to the class that was being
used as a property (not the control):

1. In the Solution Explorer of VS2005, right click on the class file and
select "View Class Diagram" (This will open the Class Diagram file).

2. Select the class and open the Properties window.

3. In the "Custom Attributes" field, click the browse button. A dialog
will be displayed and enter the following: DesktopCompatible(true)

I guess we need to mark it desktop compatible for the designer to
acknowledge our classes. I do have an enumeration type as a property in my
control, but I did not get an error on that... I am guessing that I didn't
because the enumeration was defined in my control's class.

Well, I hope this helps!

- Craig
http://www.starlinesoftware.com

"Roberto" wrote:

> Craig,
> I am having the same problem. Everything used to work fine until I have installed VS2005 SP1. Since then, I got this error and I cannot open the form in the designer.
> The property of my user control that gives the error is an enumerator type.
> Let me know if you solve the problem.
>
> Roberto
>
> EggHeadCafe.com - .NET Developer Portal of Choice
> http://www.eggheadcafe.com
>
 | 
Pages: 1
Prev: How to disable SimUI
Next: Windows Mobile 5.0