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

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
 
T

Tim Wilson

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.
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top