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

  • Thread starter Thread starter Roger
  • Start date Start date
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
 
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/
 
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
 
Back
Top