Groups | Blog | Home
all groups > dotnet compact framework > october 2003 >

dotnet compact framework : ActiveX controls


NEO
10/31/2003 8:57:32 PM
Can I create ActiveX controls using C# in Compact
Framework?
NEO
11/1/2003 1:03:14 AM

Can I create DLL instead of ActiveX that will have some
GUI too?

Thanks!

[quoted text, click to view]
Peter Foot [MVP]
11/1/2003 8:38:53 AM
No ActiveX controls can only be created in Native code - Using either eVC++
3.0 or 4.0 depending on the Windows CE OS version of the target device. E.g.
Pocket PC 2000 and 2002 are CE 3.0 based so you would use eVC++ 3.0, Pocket
PC 2003 is CE 4.2 based so you would use eVC++ 4.0 SP2.

Download links for both are available here:-
http://msdn.microsoft.com/mobility/downloads/updates/default.aspx

Peter

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

[quoted text, click to view]

Peter Foot [MVP]
11/1/2003 10:40:06 AM
Do you mean a .NETCF control - if so there are a number of articles which
describe how to do this. It is not quite the same as creating a custom
control for the desktop framework as you do not have designer support for
creating UserControls however you can create a class which derives from
System.Windows.Forms.Control and code a graphical component.
http://smartdevices.microsoftdev.com/Learn/Articles/509.aspx - Creating an
Image Button Control
http://www.intelliprog.com/articles/index.html - Adding Designer Support to
a Control

Peter

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

[quoted text, click to view]

Girish NS
11/1/2003 2:10:34 PM
Hi,

u can't create activex controls using C#. Activex controls can be created
only using EVC++

Girish.

[quoted text, click to view]

NEO
11/2/2003 1:17:06 AM
Hi,

Thanks for your response. If I follow the instructions,
would I get a control that will be used in any .NETCF
language? For example if I create it in C#, would it act
as an activeX control for VB.NET too?

Thanks!

[quoted text, click to view]
Alex Feinman [MVP]
11/2/2003 5:50:19 PM
Yes.
[quoted text, click to view]

AddThis Social Bookmark Button