System.ComponentModel

Hi guys,

I'm writing a custom control using CF as well as the full framework. With the full framework, the following works just fine:

[System.ComponentModel.Category("Custom Properties")]

[Browsable(true)]

[System.ComponentModel.Description("Set the number of lines to view")]

But try this on CF and it gets an error:

Error 1 The type or namespace name 'Category' does not exist in the namespace 'System.ComponentModel' (are you missing an assembly reference )

Any ideas on how to use these settings in CF

Many thanks,

Millie



Answer this question

System.ComponentModel

  • Sequel2k5

    For NETCF V1 you'd need to create separate design time assembly, see this.

    For NETCF V2 attributes like this are in a special file, see this.



  • Aquineas

    Thanks guys for the replies, all sorted now!!

    Happy New Year to all!

    Millie


  • Arcan

    the category attribute is simply not supported in CF1.0 or CF2.0.
  • System.ComponentModel