usercontrols with the .net compactframework

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

is iit possible do develop my own user conrtols ( such as button,
datagrid,...) with the compactframework?

Regards
Frederik Duchi
 
The support is more limited than in the full .NET framework. You can create
a custom control by deriving from System.Windows.Forms.Control. There is no
designer experience for this though. If you want to create a design-time
version of the control so that you can add your control to a project from
the Visual Studio forms designer, you have to jump a few more hurdles, and
currently you can only create a design-time control in C#. There is an
article here on writing controls with design-time support:-
http://www.intelliprog.com/articles/index.html

For some good examples you can browse the source of the Smart Device
Framework - the OpenNETCF.Windows.Forms library has a number of custom
controls - www.opennetcf.org/sourcebrowse/


Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
peter,
can we put the all the user controls in a dll and use them from the
application by referencing those user controls?
 
Are there any changes planned to make it easyer to create a control for
design time in Visual Studio 2005?
 
As long as your controls are built as a Smart Device dll project, as opposed
to a desktop UserControl project, you can create a device dll containing
multiple custom controls. You can reference this dll from your exe and add
the controls to your application purely through code, or you can build a
design-time assembly so you can place the controls on your form and set
their properties with the designer.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
Back
Top