PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Designer Problems [Second Go]

Reply

Designer Problems [Second Go]

 
Thread Tools Rate Thread
Old 14-03-2004, 01:14 AM   #1
Andreas Håkansson
Guest
 
Posts: n/a
Default Designer Problems [Second Go]


I followed the tutorial at http://www.intelliprog.com/articles/index.html to
create a
design time assembly of my control. I then added the Design.MyControl to my
toolbox and tried to drop my control on the Smart Device Form and nothing
happended except that the following was displayed in the Task List

* The dependency 'System.Runtime.Serialization.Formatters.Soap' could
not be found.
* The dependency 'Accessibility' could not be found.

My controls is derived from the System.Windows.Forms.Panel klass and simply
override the OnPain method and draws a border like so

namespace ControlTest
{
public class MyControl : System.Windows.Forms.Control
{
public MyControl() : base()
{
}

protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint (e);
Rectangle controlRectangle =
new Rectangle(0, 0, this.Width-1, this.Height-1);
e.Graphics.DrawRectangle(new Pen(Color.Black),
controlRectangle);
}
}

The last thing I did was to add the following to the AssemblyInfo file

#if NETCFDESIGNTIME
[assembly:
System.CF.Design.RuntimeAssemblyAttribute("ControlTest.MyControl,
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null")]
#endif

The MyControl.dll when into the \WindowsCE\ folder and the
Design.MyControl.dll
went into the \WindowsCE\Designer\ folder. This has been eating at me since
last
night and I need a hint or two =)

//Andreas Håkansson



  Reply With Quote
Old 14-03-2004, 09:06 PM   #2
Alex Feinman [MVP]
Guest
 
Posts: n/a
Default Re: Designer Problems [Second Go]

I think you might be binding to a wrong set of assembly references - desktop
ones to be exact. You might want to check your references

"Andreas Håkansson" <andy.h (at) telia.com> wrote in message
news:OCbynGWCEHA.2308@tk2msftngp13.phx.gbl...
> I followed the tutorial at http://www.intelliprog.com/articles/index.html

to
> create a
> design time assembly of my control. I then added the Design.MyControl to

my
> toolbox and tried to drop my control on the Smart Device Form and nothing
> happended except that the following was displayed in the Task List
>
> * The dependency 'System.Runtime.Serialization.Formatters.Soap' could
> not be found.
> * The dependency 'Accessibility' could not be found.
>
> My controls is derived from the System.Windows.Forms.Panel klass and

simply
> override the OnPain method and draws a border like so
>
> namespace ControlTest
> {
> public class MyControl : System.Windows.Forms.Control
> {
> public MyControl() : base()
> {
> }
>
> protected override void OnPaint(PaintEventArgs e)
> {
> base.OnPaint (e);
> Rectangle controlRectangle =
> new Rectangle(0, 0, this.Width-1, this.Height-1);
> e.Graphics.DrawRectangle(new Pen(Color.Black),
> controlRectangle);
> }
> }
>
> The last thing I did was to add the following to the AssemblyInfo file
>
> #if NETCFDESIGNTIME
> [assembly:
> System.CF.Design.RuntimeAssemblyAttribute("ControlTest.MyControl,
> Version=1.0.0.0, Culture=neutral, PublicKeyToken=null")]
> #endif
>
> The MyControl.dll when into the \WindowsCE\ folder and the
> Design.MyControl.dll
> went into the \WindowsCE\Designer\ folder. This has been eating at me

since
> last
> night and I need a hint or two =)
>
> //Andreas Håkansson
>
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off