PC Review


Reply
Thread Tools Rate Thread

Adding Designer Support in Compact Framework user controls

 
 
Andres Aguiar
Guest
Posts: n/a
 
      26th Feb 2004
We created our controls and designer project following the steps in
http://msdn.microsoft.com/library/de...scompactfx.asp

We create a C# project with the user controls, and copy the runtime assembly
file to "C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\" and the design-time assembly
file to the "C:\Program Files\Microsoft Visual Studio .NET
2003\CompactFrameworkSDK\v1.0.5000\Windows CE\Designer\".

We have found some problems:

1) If we have a form open with our control, then we cannot overwrite the
design time assembly file because it's use by VS. We have to close all form
and restart VS and then we can update this file. Is there any workaround for
this?

2) If we have a project that has a reference to the runtime assembly open in
VS, then the same happens and we cannot update the runtime assembly until we
restart VS. We can work around this issue by adding the reference to the
controls project instead of the runtime assembly, but we don't know if it's
correct.

3) The Designer Project cannot be created using VB .net because it doesn't
compile. There is another way to create the designer assemblies for VB .net?

Thanks,

Andres



 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      26th Feb 2004
Answers inline:-

"Andres Aguiar" <(E-Mail Removed)> wrote in message
news:ef2lbEH$(E-Mail Removed)...
> We created our controls and designer project following the steps in
>

http://msdn.microsoft.com/library/de...scompactfx.asp
>
> We create a C# project with the user controls, and copy the runtime

assembly
> file to "C:\Program Files\Microsoft Visual Studio .NET
> 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\" and the design-time

assembly
> file to the "C:\Program Files\Microsoft Visual Studio .NET
> 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\Designer\".
>
> We have found some problems:
>
> 1) If we have a form open with our control, then we cannot overwrite the
> design time assembly file because it's use by VS. We have to close all

form
> and restart VS and then we can update this file. Is there any workaround

for
> this?


This is to be expected because the forms designer loads the assembly to
allow designing in your consuming project. This is only an issue when
developing/testing the designer library.

>
> 2) If we have a project that has a reference to the runtime assembly open

in
> VS, then the same happens and we cannot update the runtime assembly until

we
> restart VS. We can work around this issue by adding the reference to the
> controls project instead of the runtime assembly, but we don't know if

it's
> correct.
>


If you have copied a prior version to the "C:\Program Files\Microsoft Visual
Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\" and change your
project to reference the project rather than this file, it will still be
this older file which is deployed as Visual Studio favours any assembly in
this folder over that in a local project folder.

> 3) The Designer Project cannot be created using VB .net because it doesn't
> compile. There is another way to create the designer assemblies for VB

..net?
>


Yes currently device control design time libraries can only be created in
C#.

Peter

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org


 
Reply With Quote
 
Andres Aguiar
Guest
Posts: n/a
 
      26th Feb 2004
Thanks Peter.

Andres

"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
news:eEpiWpH$(E-Mail Removed)...
> Answers inline:-
>
> "Andres Aguiar" <(E-Mail Removed)> wrote in message
> news:ef2lbEH$(E-Mail Removed)...
> > We created our controls and designer project following the steps in
> >

>

http://msdn.microsoft.com/library/de...scompactfx.asp
> >
> > We create a C# project with the user controls, and copy the runtime

> assembly
> > file to "C:\Program Files\Microsoft Visual Studio .NET
> > 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\" and the design-time

> assembly
> > file to the "C:\Program Files\Microsoft Visual Studio .NET
> > 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\Designer\".
> >
> > We have found some problems:
> >
> > 1) If we have a form open with our control, then we cannot overwrite the
> > design time assembly file because it's use by VS. We have to close all

> form
> > and restart VS and then we can update this file. Is there any workaround

> for
> > this?

>
> This is to be expected because the forms designer loads the assembly to
> allow designing in your consuming project. This is only an issue when
> developing/testing the designer library.
>
> >
> > 2) If we have a project that has a reference to the runtime assembly

open
> in
> > VS, then the same happens and we cannot update the runtime assembly

until
> we
> > restart VS. We can work around this issue by adding the reference to the
> > controls project instead of the runtime assembly, but we don't know if

> it's
> > correct.
> >

>
> If you have copied a prior version to the "C:\Program Files\Microsoft

Visual
> Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows CE\" and change

your
> project to reference the project rather than this file, it will still be
> this older file which is deployed as Visual Studio favours any assembly in
> this folder over that in a local project folder.
>
> > 3) The Designer Project cannot be created using VB .net because it

doesn't
> > compile. There is another way to create the designer assemblies for VB

> .net?
> >

>
> Yes currently device control design time libraries can only be created in
> C#.
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> OpenNETCF.org Senior Advisor
> www.inthehand.com | www.opennetcf.org
>
>



 
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
user controls in compact framework 3.5 Chris Microsoft Dot NET Compact Framework 1 28th Jul 2008 07:20 PM
Hosting Compact Framework controls in custom designer. carlengerer Microsoft Dot NET Compact Framework 1 11th Jun 2008 11:05 AM
Search an abstract of VS 2005 designer support for Compact Framework azerty Microsoft Dot NET Compact Framework 2 11th Dec 2005 12:33 PM
Giving Web User Controls designer support SimonH Microsoft Dot NET 2 1st Feb 2005 03:26 PM
Giving Web User Controls designer support SimonH Microsoft ASP .NET 2 1st Feb 2005 03:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:54 AM.