I would like to use the open source code from here – Roger Lipscombe’s .NET wizard form classes.
Unfortunately for me my target is a Windows Mobile 6.5 device and not a Win7/VS 2010 project. So since I could not use the projects as is I decided to create the two dependency projects by hand for the mobile device in VS2008.
Things seemed to go well until I tried to compile.
I am not sure now why i get the following error:
Error 1 The type or namespace name ‘CategoryAttribute’ could not be
found (are you missing a using directive or an assembly
reference?) C:\Development\SmartDeviceProject1\Wizard.Controls\EtchedLine.cs 50
The line of code is:
[Category("Appearance")]
I think the open source project is using .NET 2 and the mobile project is 3.5.
I am a C++ developer trying to make a mobile app with a wizard UI.
Can someone perhaps point out what I may be missing and what this error means and how to fix it?
EDIT
Thanks all who answered.
Commenting those decorators out fixed the problem (though I have a lot of issues apparently with things that are NOT supported in the compact framework. Oh well – it wa worth a shot)
The CategoryAttribute is used when the control is loaded in visualstudio i.e. when editing the form and how to find the associated property in the property grid. You could probbaly just comment it out with no ill effects. The associated property will just appear somewhere else in the grid.