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?