How should I do to create a user control for a Device Application (1.0) project?

  • Thread starter Thread starter SammyBar
  • Start date Start date
S

SammyBar

Hi all,

I'm trying to create a project (VS 2005 release) for creating a control for
the compact framework version 1.0 but it looks it is not possible. If I
choose for the new project Smart Device/PPC 2003/Control Library template it
creates a user control for the 2.0 framework which I can't use on a Device
Application (1.0) project.

How should I do to create a user control for a Device Application (1.0)
project?
Thanks in advance
Sammy
 
The UserControl class does not exist in CF 1.0. You'll need to build the
control off of another type of control such as the Control class. You can
create a "Class Library (1.0)" project and then setup the project to include
the requried assemblies (which would be at least System.Windows.Forms.dll)
and then inherit from an existing control.
 
You can also take a look at the Opennetcf.org controlEx class for your base
class instead of using an existing control, it has a few extras that are
nice.

Robert Brown
 
Back
Top