PC Review


Reply
Thread Tools Rate Thread

Design-Time Support Problem

 
 
Andreas Håkansson
Guest
Posts: n/a
 
      11th Mar 2004
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Design Time Support Jay Dee Microsoft C# .NET 0 10th Jan 2009 06:12 PM
WebUserControl and design time support Christian H Microsoft ASP .NET 0 30th Sep 2005 01:56 PM
Design Time Support Zviki Goldberg Microsoft ASP .NET 2 19th Apr 2004 07:59 AM
Design Time Support Cor Ligthert Microsoft Dot NET 3 18th Apr 2004 12:31 PM
Design Time Support Zviki Goldberg Microsoft C# .NET 0 18th Apr 2004 08:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:45 PM.