Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Controls / October 2005

Tip: Looking for answers? Try searching our database.

Compact Framework and ControlDesigner

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kevin  cline - 28 Oct 2005 21:27 GMT
Can someone give me step-by-step instructions for associating a custom
editor and designers with controls in a WinCE5.0 Control Library?

At http://www.mooseworkssoftware.com/VS2005%20Control.htm I found this:

"...we set the Editor attribute of the class to that editor as shown
below."

<Editor>
   <Type>Mooseworks.GI.SimpleGraphEditor, MwSimpleGraphEditor,
Version=1.0.0.0, Culture=neutral,
PublicKeyToken=15EF1E3443EA1F6B</Type>
   <BaseType>System.ComponentModel.ComponentEditor, System,
Version=2.0.0.0, Culture=neutral,
PublicKeyToken=B77A5C561934E089</BaseType>
</Editor>

Easy, right? "

I don't see anything easy about it.  Where does all that information
come from?
kevin  cline - 28 Oct 2005 22:16 GMT
Ok, I figured out that you can get that information via gacutil /l
Tim Wilson - 28 Oct 2005 22:23 GMT
You need to build your editor(s) and designer(s) into an assembly (dll)
through a .NET 2.0 class library project (a full framework project, not a
compact framework project). You then compile this full framework class
library assembly ensuring that it's strong named using a generated key (this
can be easily done in VS 2005 through the project properties). This assembly
will need to be installed into the GAC (gacutil /i [assembly name]). Once
the assembly is installed into the GAC you can view all the information that
you need to indicate the "Editor" tag within the xmta file. The information
is accessible within the GAC by right-clicking on the assembly and viewing
its properties.

Note that when creating a custom designer for a smart device custom control
you should inherit from the
Microsoft.CompactFramework.Design.DeviceControlDesigner type which is
located in the Microsoft.CompactFramework.Design.dll assembly.

Signature

Tim Wilson
.NET Compact Framework MVP

> Can someone give me step-by-step instructions for associating a custom
> editor and designers with controls in a WinCE5.0 Control Library?
[quoted text clipped - 17 lines]
> I don't see anything easy about it.  Where does all that information
> come from?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.