More than one custom control in one dll

G

Guest

I followed the "Walkthrough: Authoring a Custom Control for Smart Device Applications" to create a custom control with a design time counterpart

How do I get more than one custom control in a class library dll?

Right now I have a control that inherits from System.Windows.Forms.TextBox. I added another class for a control that inherits from System.Windows.Forms.Label but the design time icons of both controls are grayed out in the toolbox if I add the Label class to the dll project

Is it one assembly/dll per custom control? Because I can't define System.CF.Design.RuntimeAssemblyAttribute more than once

I would like to have group a bunch of controls in a dll to make them more portable.
 
A

Alex Yakhnin [MVP]

Yes, you can have multiple controls in one assembly.

Move the defintion for System.CF.Design.RuntimeAssemblyAttribute to your
AssemblyInfo.cs.

--
Alex Yakhnin .NET CF MVP
www.intelliprog.com | www.opennetcf.org

Pete said:
I followed the "Walkthrough: Authoring a Custom Control for Smart Device
Applications" to create a custom control with a design time counterpart.
How do I get more than one custom control in a class library dll?

Right now I have a control that inherits from
System.Windows.Forms.TextBox. I added another class for a control that
inherits from System.Windows.Forms.Label but the design time icons of both
controls are grayed out in the toolbox if I add the Label class to the dll
project.
Is it one assembly/dll per custom control? Because I can't define
System.CF.Design.RuntimeAssemblyAttribute more than once.
I would like to have group a bunch of controls in a dll to make them more
portable.
 
G

Guest

Sweet! That did the trick Thanks

----- Alex Yakhnin [MVP] wrote: ----


Yes, you can have multiple controls in one assembly

Move the defintion for System.CF.Design.RuntimeAssemblyAttribute to you
AssemblyInfo.cs

-
Alex Yakhnin .NET CF MV
www.intelliprog.com | www.opennetcf.or

Pete said:
I followed the "Walkthrough: Authoring a Custom Control for Smart Devic
Applications" to create a custom control with a design time counterpartSystem.Windows.Forms.TextBox. I added another class for a control tha
inherits from System.Windows.Forms.Label but the design time icons of bot
controls are grayed out in the toolbox if I add the Label class to the dl
projectportable
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top