G
Guest
Hello all!
I have developed a class that inherits from System.Windows.Forms.Form which
enhances the base type's keyboard handling.
This new type (EnhancedForm) is to be inherited from all the forms in my
project.
I am aware that visual inheritance is not supported in the CF, so I tried to
fool the designer by declaring my subclasses like this:
#if DESIGN
public class ASubclassedForm: System.Windows.Forms.Form
#else
public class ASubclassedForm: MyCompany.Windows.Forms.EnhancedForm
#
{
...
Visual studio .NET 2003 is supposed to automatically define a constant named
"DESIGN" in design time. I've seen it used in OpenNetCF and read articles
about it, but in my case the code under the #if DESIGN block is allways
grayed out in the designer, unless I define the constant myself.
Any clues?
Thanks in advance.
I have developed a class that inherits from System.Windows.Forms.Form which
enhances the base type's keyboard handling.
This new type (EnhancedForm) is to be inherited from all the forms in my
project.
I am aware that visual inheritance is not supported in the CF, so I tried to
fool the designer by declaring my subclasses like this:
#if DESIGN
public class ASubclassedForm: System.Windows.Forms.Form
#else
public class ASubclassedForm: MyCompany.Windows.Forms.EnhancedForm
#
{
...
Visual studio .NET 2003 is supposed to automatically define a constant named
"DESIGN" in design time. I've seen it used in OpenNetCF and read articles
about it, but in my case the code under the #if DESIGN block is allways
grayed out in the designer, unless I define the constant myself.
Any clues?
Thanks in advance.