I am trying to write a design time custom control using
Studio.NET 2003. I already add the reference to System
and System.Windows.Forms. But when I build my project, I
got errors:

c:\PPCCustomCtrl\bin\Debug\System.CF.Windows.Forms.dll
Referenced class 'System.Windows.Forms.Control' has base
class or
Interface 'System.ComponentModel.ISynchronizeInvoke'
defined in an assembly that is not referenced. You must
add a reference to assembly 'System'.

c:\PPCCustomCtrl\bin\Debug\System.CF.Windows.Forms.dll
Referenced class 'System.Windows.Forms.Control' has base
class or interface 'System.Windows.Forms.IWin32Window'
defined in an assembly that is not referenced. You must
add a reference to assembly 'System.Windows.Forms'.

C:\PPCCustomCtrl\MyTextBoxCtrl.cs
(13): 'System.Windows.Forms.Control' is defined in
multiple places; using definition
from 'c:\Qin\DotNET\CSharp\PDA\PPCApplications\PPCCustomCt
rl\bin\Debug\System.CF.Windows.Forms.dll'

Error: The dependency 'System.Drawing,
Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=969db8053d3322ac' in
project 'PPCCustomCtrl' cannot be copied to the run
directory because it would conflict with
dependency 'System.Drawing, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Can anyone tell me the reason?

custom control question by kathy

kathy
Tue Jul 15 13:27:01 CDT 2003

I read some articles from MSDN about writing the custom
control for PPC using Stdio.NET. But all about Beta
version. Does anyone has code example using the released
Studio.NET 2003?

Thanks,

Re: custom control question by Chris

Chris
Tue Jul 15 13:36:08 CDT 2003

Once again I'll point you to the GroupBox and BatteryMonitor controls on
OpenNETCF.org. They both use ther release of Studio 2003 and both have
designer support.

--
Chris Tacke, eMVP
Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


"kathy" <kathy@nospam.com> wrote in message
news:029101c34afe$af2768d0$a301280a@phx.gbl...
> I read some articles from MSDN about writing the custom
> control for PPC using Stdio.NET. But all about Beta
> version. Does anyone has code example using the released
> Studio.NET 2003?
>
> Thanks,



Re: custom control question by kathy

kathy
Tue Jul 15 15:17:14 CDT 2003

But I can not build the
design.OpenNETCF.Windows.Forms.GroupBox.dll with your
Studio.NET 2003 solution.

Re: custom control question by kathy

kathy
Tue Jul 15 15:25:21 CDT 2003

I can not download the BatteryMonitor controls. Your
server has problem.

Re: custom control question by kathy

kathy
Tue Jul 15 15:59:39 CDT 2003

After a long waiting /time out, I finally got the source
code for the BatteryLife control. And I can build
both .dll - Cool!

Re: custom control question by kathy

kathy
Tue Jul 15 16:32:52 CDT 2003

I use the download binary file:

design.OpenNETCF.Windows.Forms.GroupBox.dll
OpenNETCF.Windows.Forms.GroupBox.dll

and added to the toolbox. I can drag and drop to the test
form. But when I try to delete it, a dialog pop up and
say "Specified cast is not valid.". Why I can not delete
it?

BTW, I can delete the BatteryLife control.