It took me a while to figure this out too, Fette. You actually have to add
this define yourself to the project options. In VS.NET open your project and
go to the Project > <Project> Properties menu item. In the Configuration
dropdown select "All Configurations". Click on the Configuration Properties
item in the left pane, then add NETCFDESIGNTIME to the "Conditional
Compilation Constants" option.
--
Neil Enns
Lead Program Manager
Microsoft Mobile Devices Product Group
This posting is provided "AS IS" with no warranties, and confers no rights.
"Fette Töle" <(E-Mail Removed)> wrote in message
news:004501c3576f$257be9d0$(E-Mail Removed)...
I read in some tutorials
(
http://smartdevices.microsoftdev.com...rticles/505.as
px) that you can use the compiler directive
#if NETCFDESIGNTIME
some code
#endif
in order to isolate code which is only necessary for the
GUI designer at design time. This means the designer
somehow assumes the NETCFDESIGNTIME constant to be defined
when it processes code.
However, this doesn't work for me, ie. the NETCFDESIGNTIME
constant seems to not to be existant. Is there a special
option to switch this constant on during design time?
Thanks for any help
fette Töle