laptop and a wrench

Erro

Issues with ‘ControlsMapMeasureTool’ as a customized button on the menu strip in an ArcEngine application

Última Publicação: August 25, 2014 ArcGIS Engine
Número de ID do Erro NIM061664
EnviadoOctober 1, 2010
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Engine
Versão encontrada10.1
Idioma do programaC#
Sistema OperacionalWindows OS
Versão do Sistema OperacionalXP
StatusDuplicate

Informações Adicionais

NIM064391

Solução Provisória

The solution is to modify the manifest file and add the version 6.0 Common Control Library specification there instead of relying on Enabling Visual Styles.For example here is how I was able to get this to work for the MapControl Template.- Create a new MapControl Template.- Right-click on the project, select add new item- Add an Application Manifest File- Add the following to the Manifest: <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*" /> </dependentAssembly> </dependency> So your full manifest would look like this:<?xml version="1.0" encoding="utf-8"?><asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>"> <assemblyIdentity version="1.0.0.0" name="MyApplication.app"/> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="X86" publicKeyToken="6595b64144ccf1df" language="*" /> </dependentAssembly> </dependency> <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2"> <security> <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> <!-- UAC Manifest Options If you want to change the Windows User Account Control level replace the requestedExecutionLevel node with one of the following. <requestedExecutionLevel level="asInvoker" uiAccess="false" /> <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> <requestedExecutionLevel level="highestAvailable" uiAccess="false" /> If you want to utilize File and Registry Virtualization for backward compatibility then delete the requestedExecutionLevel node. --> <requestedExecutionLevel level="asInvoker" uiAccess="false" /> </requestedPrivileges> </security> </trustInfo></asmv1:assembly>

Etapas para Reproduzir

ID do Erro: NIM061664

Software:

  • ArcGIS Engine

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download