PC Review


Reply
Thread Tools Rate Thread

Designer Problems [Second Go]

 
 
Andreas Håkansson
Guest
Posts: n/a
 
      14th 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
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      14th Mar 2004
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:(E-Mail Removed)...
> 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
Dataset Designer problems SAL Microsoft ASP .NET 0 16th Mar 2007 08:34 PM
Problems with Designer code LightWarrior Microsoft Dot NET Framework Forms 1 31st Aug 2006 02:41 PM
designer problems Jimmy Microsoft ASP .NET 0 31st Jul 2005 08:57 AM
UserControl Designer problems Markus Wildgruber Microsoft C# .NET 5 3rd Aug 2004 09:29 AM
Re: problems with form designer MagiTec Microsoft Dot NET 0 18th Mar 2004 11:45 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 AM.