<?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: how to access addin combobox.selected in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-addin-combobox-selected/m-p/761607#M20177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you come up with a solution for this? I'm just now getting into an almost identical tool and if I can get a spring board on this that would help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Mar 2014 19:02:33 GMT</pubDate>
    <dc:creator>AaronBarkhurst</dc:creator>
    <dc:date>2014-03-28T19:02:33Z</dc:date>
    <item>
      <title>how to access addin combobox.selected</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-addin-combobox-selected/m-p/761605#M20175</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;BR /&gt;&lt;SPAN&gt;I'm sure I'm making this more complicated than it needs to be.&amp;nbsp; I am creating an addin toolbar with a button and combobox.&amp;nbsp; I'm populating the combobox with all the layers in the TOC.&amp;nbsp; When the button is clicked, I'd like to perform some action on the layer selected in the combobox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the life of me, I can't figure out how to get the selected item from the combobox from inside the OnClick() event of the button.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGISAddin2 is my combobox, with GetComboBox() :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt; Friend Shared Function GetComboBox() As ArcGISAddin2
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return s_comboBox
&amp;nbsp;&amp;nbsp;&amp;nbsp; End Function&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The below doesn't work to get the property of the combobox, because "'ESRI.ArcGIS.Desktop.AddIns.ComboBox.Protected ReadOnly Property Selected() As Integer' is not accessible in this context because it is 'Protected'."&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
 Dim selCombo As ArcGISAddin2 = ArcGISAddin2.GetComboBox()
 i = selCombo.selected
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could somebody please give me a hint as to how to access the text or cookie in the combobox?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 13:40:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-addin-combobox-selected/m-p/761605#M20175</guid>
      <dc:creator>MikeTischler</dc:creator>
      <dc:date>2012-08-31T13:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to access addin combobox.selected</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-addin-combobox-selected/m-p/761606#M20176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this link will help you:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00480000017v000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//00480000017v000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 10:02:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-addin-combobox-selected/m-p/761606#M20176</guid>
      <dc:creator>AysberqTundra</dc:creator>
      <dc:date>2012-09-03T10:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to access addin combobox.selected</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-addin-combobox-selected/m-p/761607#M20177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you come up with a solution for this? I'm just now getting into an almost identical tool and if I can get a spring board on this that would help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 19:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-access-addin-combobox-selected/m-p/761607#M20177</guid>
      <dc:creator>AaronBarkhurst</dc:creator>
      <dc:date>2014-03-28T19:02:33Z</dc:date>
    </item>
  </channel>
</rss>

