| crwng@comcast.net 2005-03-11, 3:59 pm |
| I tried building the design time control for a component called
"PictureViewer" (see
http://www.codeproject.com/cs/miscc...picturebox1.asp). I
wanted to place it in my ToolBox so I can drag it onto a Windows CE
project form, but I got an error. It's saying that it expects a
different protection level on
'System.Windows.Forms.Control.ControlCollection.AddRange(System.Windows.Forms.Control[])'
which doesn't make sense since all properties and methods are public
for this up and down the object hierarchy.
Below is the command I ran and the error. Please help me understand
what's going on and how to fix it. Thanks.
C:\Documents and Settings\Rob\My Documents\Visual Studio
Projects\ratioStretchpi
ctureBox1>csc /noconfig /define:NETCFDESIGNTIME /target:library
/out:design.View
er.dll Viewer.cs /r:"C:\Program Files\Microsoft Visual Studio .NET
2003\CompactF
rameworkSDK\v1.0.5000\Windows CE\Designer\System.CF.Design.dll"
/r:"C:\Program F
iles\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\
Designer\System.CF.Windows.Forms.dll" /r:"C:\Program Files\Microsoft
Visual Stud
io .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows
CE\Designer\System.CF.Drawing
..dll" /r:System.Windows.Forms.dll /r:System.Drawing.dll /r:System.dll
/r:System.
XML.dll /r:System.Web.Services.dll /r:System.Data.dll /nowarn:1595
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
Viewer.cs(176,4): error CS0122:
'System.Windows.Forms.Control.ControlCollection.AddRange(System.Windows.
Forms.Control[])' is inaccessible due to its protection level
|