G
Guest
Hello all
I have developed a class that inherits from System.Windows.Forms.From and I
intend to use it as the base type for all of my projects Forms.
I am aware thet Visual Studio does not support visual inheritance for .NET
CF forms so I tried to fool the designer by using the DESIGN constant:
#if DESGING
public class MyForm: System.Windows.Forms.Form
#else
public class MyForm: MyCompany.MyNamespace.EnhancedForm
#endif
{
...
I've seen this trick used in OpenNETCF libraries and I've read articles
about it on the web. VS 2003 is supposed to define the DESIGN constant
automatically while in the desginer. However, everything I place inside the
#if DESIGN block is always grayed out, unless I define the constant myself.
Does the DESIGN constant really exist?
Thanks in advance!
I have developed a class that inherits from System.Windows.Forms.From and I
intend to use it as the base type for all of my projects Forms.
I am aware thet Visual Studio does not support visual inheritance for .NET
CF forms so I tried to fool the designer by using the DESIGN constant:
#if DESGING
public class MyForm: System.Windows.Forms.Form
#else
public class MyForm: MyCompany.MyNamespace.EnhancedForm
#endif
{
...
I've seen this trick used in OpenNETCF libraries and I've read articles
about it on the web. VS 2003 is supposed to define the DESIGN constant
automatically while in the desginer. However, everything I place inside the
#if DESIGN block is always grayed out, unless I define the constant myself.
Does the DESIGN constant really exist?
Thanks in advance!