Why doesn't my control show up in "Customize Toolbox" list?

R

Roger

I've got everything else working, for PocketTerra, but my controls do
not show up in the Customize Toolbox list. The assemblies are strong
named and in the GAC, as well as in the "Program Files\Microsoft
Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows
CE\Designer directory. I can add them using the Browse button, but
that isn't what I want!

Any ideas?

Thanks!
Roger
 
N

Neil Cowburn [MVP]

Hi Roger,

As I said in my email to you, I tried this documented (in MSDN) method and it worked for me:

Use the Windows utility Regedit.exe to create a registry key at HKEY_LOCAL_MACHINE\Software\Microsoft\Visual
Studio\7.1\AssemblyFolders\<KeyName> and set the Default string value to the file location where your assembly is found. <KeyName> can be any value you prefer.

HTH
Neil



--
Neil Cowburn
Microsoft Windows Embedded MVP
Co-Founder, OpenNETCF.org

WWW: http://www.opennetcf.org/
Blog: http://blog.opennetcf.org/ncowburn/
 
R

Roger

Thanks Neil!

Yes it does, with the following caveats:

The folder with the DesignTime controls cannot be

Program Files\Microsoft
Visual Studio .NET 2003\CompactFrameworkSDK\v1.0.5000\Windows
CE\Designer

Instead, use something like:

Program Files\PocketTerra\bin

Just put the DesignTime controls in it. If you put your runtime
controls in it, then they will also show up in the Customize Toolbox
Dialog, thereby really confusing matters.

Secondly, if your controls are Strong Named, then you have to use the
correct PublicKeyToken in the RuntimeAssemblyAttribute. One way to
find the PublicKeyToken is by viewing the properties of the assembly
in a setup VS program.

Once I figured this out, everything works as advertised.

Roger
 

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