<?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 Re: A Possible Bug of Arcmap Add-In Combobox in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-possible-bug-of-arcmap-add-in-combobox/m-p/612280#M16442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is my mistake. The cookie that the ComboBox.Add() returns does not start from 0. It is not a normal index.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Dec 2013 17:35:21 GMT</pubDate>
    <dc:creator>HaoliangYu</dc:creator>
    <dc:date>2013-12-23T17:35:21Z</dc:date>
    <item>
      <title>A Possible Bug of Arcmap Add-In Combobox</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-possible-bug-of-arcmap-add-in-combobox/m-p/612279#M16441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I am using C# to develop an Arcmap addin. I wonder whether there is a bug at the function ComboBox.GetItem().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to run the following code when the combobox was initialized: (an item is already added)&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;MessageBox.Show(this.GetItem(0).Caption)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;but it failed to popup a messagebox. So I used this.items(0).Caption instead and it worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess there is difference between ComboBox.GetItem(index) and ComboBox.items[index]. Or there may be a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;btw, is there a way that the add-in can get access to events of controls at ArcMap? For example, directly response to the layer addition or deletion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 05:02:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/a-possible-bug-of-arcmap-add-in-combobox/m-p/612279#M16441</guid>
      <dc:creator>HaoliangYu</dc:creator>
      <dc:date>2013-12-23T05:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: A Possible Bug of Arcmap Add-In Combobox</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/a-possible-bug-of-arcmap-add-in-combobox/m-p/612280#M16442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is my mistake. The cookie that the ComboBox.Add() returns does not start from 0. It is not a normal index.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 17:35:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/a-possible-bug-of-arcmap-add-in-combobox/m-p/612280#M16442</guid>
      <dc:creator>HaoliangYu</dc:creator>
      <dc:date>2013-12-23T17:35:21Z</dc:date>
    </item>
  </channel>
</rss>

