Mike Scott
Mike Scott

Reputation: 12463

WinForms UserControl inheritance in .Net Compact Framework

The full .Net framework has an inherited UserControl but this option isn't offered by Visual Studio when creating a new control in a Compact Framework project.

Manually changing the ancestor class of a user control to another user control results in an exception being thrown by the designer when subsequently trying to open it.

Anyone know if user control inheritance is possible?

Upvotes: 1

Views: 1268

Answers (2)

ctacke
ctacke

Reputation: 67178

I have some notes on CF UserControls in this blog entry. The short of it is "Unless you plan to be a control vendor don't bother wasting your time even trying to get designer support working."

Upvotes: 1

Austin Salonen
Austin Salonen

Reputation: 50225

I've had success running inherited controls but absolutely none within the designer. I've had to set the parent as Control to use the designer and then set it to my parent control prior to deploying (after closing the designer).

Upvotes: 0

Related Questions