Visual Inheritance is Currently Disabled

The full text of this message follows:

Visual Inheritance is currently disabled because the base control has a device-specific control.

This message can appear in managed projects when a base control or base form has a device-specific control or component.

Situations that can cause this situation include the following:

  • The parent of an inherited form or of an inherited user control contains a device-specific control. In this case, you cannot see the designer for the inherited form or the inherited user control.

  • A form or a user control contains a device-specific control and is inherited from another form or user control. In this case you cannot see the designer for the inherited form or inherited user control.

  • The project references device-specific assemblies, such as Microsoft.WindowsCE.Forms.dll.

  • The project, or an assembly referenced by the project, includes platform invoke. If you are sure that platform invoke will not be executed during design time, you can safely enable visual inheritance by putting a DesktopCompatible(true) attribute on the parent form or the parent user control.

See Also

Other Resources

Error Messages (Devices)

Programming for Devices Using the .NET Compact Framework