<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ICommand OnClick() not working in C#...works fine in VB.Net :( in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/icommand-onclick-not-working-in-c-works-fine-in-vb/m-p/294448#M7657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am facing a strange issue with a piece of code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created an ICommand sample in C# &amp;amp; VB.Net both, but the when I click on the button using the C# code, nothing happens. I have tried the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Put message box within the OnClick procedure...it does not gets displayed during runtime.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Put breakpoints, but even they are not getting hit&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;My code is in DEBUG mode and not in Release mode&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Same piece of code works fine in VB.net&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Have reset my devolopment environment (devenv/resetsettings)...no help&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;Any clues why this strange behavior???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached my solution, please remove any illegal references, as the code is referencing Network Engineer dll.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: I am using VS 2005, ESRI 9.2&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Sep 2010 11:36:45 GMT</pubDate>
    <dc:creator>UjjwalNigam</dc:creator>
    <dc:date>2010-09-27T11:36:45Z</dc:date>
    <item>
      <title>ICommand OnClick() not working in C#...works fine in VB.Net :(</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/icommand-onclick-not-working-in-c-works-fine-in-vb/m-p/294448#M7657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am facing a strange issue with a piece of code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created an ICommand sample in C# &amp;amp; VB.Net both, but the when I click on the button using the C# code, nothing happens. I have tried the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Put message box within the OnClick procedure...it does not gets displayed during runtime.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Put breakpoints, but even they are not getting hit&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;My code is in DEBUG mode and not in Release mode&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Same piece of code works fine in VB.net&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Have reset my devolopment environment (devenv/resetsettings)...no help&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;Any clues why this strange behavior???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached my solution, please remove any illegal references, as the code is referencing Network Engineer dll.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: I am using VS 2005, ESRI 9.2&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 11:36:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/icommand-onclick-not-working-in-c-works-fine-in-vb/m-p/294448#M7657</guid>
      <dc:creator>UjjwalNigam</dc:creator>
      <dc:date>2010-09-27T11:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: ICommand OnClick() not working in C#...works fine in VB.Net :(</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/icommand-onclick-not-working-in-c-works-fine-in-vb/m-p/294449#M7658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ignore this guys...!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My fault...was not 'enabling' the ICommand &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 11:46:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/icommand-onclick-not-working-in-c-works-fine-in-vb/m-p/294449#M7658</guid>
      <dc:creator>UjjwalNigam</dc:creator>
      <dc:date>2010-09-27T11:46:52Z</dc:date>
    </item>
  </channel>
</rss>

