<?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: ComboBox in Ribbon Panel with vb.net in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8094994#M87333</link>
    <description>&lt;P&gt;This is the Result here using Context.Text:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Context_Empty2.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/516724iAC121FEBFA6CDC81/image-size/large?v=v2&amp;amp;px=999" role="button" title="Context_Empty2.jpg" alt="Context_Empty2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jun 2018 13:38:59 GMT</pubDate>
    <dc:creator>Martin-Winkler-Consulting</dc:creator>
    <dc:date>2018-06-27T13:38:59Z</dc:date>
    <item>
      <title>ComboBox in Ribbon Panel with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8094636#M87328</link>
      <description>&lt;P&gt;Hi, iam trying to implement a ComboBox into a user defined additional Inventor Ribbon Panel. The ComboBox is shown in the panel with its entries. But iam not able to catch the selected entry when it is clicked.&lt;/P&gt;&lt;P&gt;I implemented the Combobox in the AddinServer Class with&lt;/P&gt;&lt;PRE&gt;Public WithEvents comboBox1 As ComboBoxDefinition
......
'Definition ComboBox
comboBox1 = AddinGlobal.InventorApp.CommandManager.ControlDefinitions.AddComboBoxDefinition(
                        My.Resources.Browsernamen_wiederherstellen,
                        My.Resources.BrowserNameUpdate,
                        CommandTypesEnum.kQueryOnlyCmdType,
                        400, Guid.NewGuid().ToString(),
                        "Browsernanmen wiederherstellen", "Stellt den ursprünglichen Display Namen der zugehörigen Datei wieder her",
                        ButtonDisplayEnum.kDisplayTextInLearningMode)

                    comboBox1.AddItem(My.Resources.Alle_Browsernamen_wiederherste)
                    comboBox1.AddItem(My.Resources.selektierte_Browsernamen_wiede)
                    comboBox1.AddItem("ComboBoxItem #3")
                    comboBox1.DescriptionText = My.Resources.Browsernamen_wieder_herstellen
                    comboBox1.ListIndex = 2
.........
 'Add it to the Browser Panel
 'Buttons in Ribbon Panel Browser hinzufügen (Tab "Browser")
                            AddinGlobal.RibbonPanel3DCSBrowserId = "{D2554A9F-2EEB-477B-A469-D40FBE606866}" 'MLHIDE
                            AddinGlobal.RibbonPanel3DCSBrowser = tabBrowser.RibbonPanels.Add(My.Resources.Browser_Panel, "GeneralTools_3DCS_AddIn.RibbonPanel_" &amp;amp; Guid.NewGuid().ToString(), AddinGlobal.RibbonPanel3DCSBrowserId, String.Empty, True) 'MLHIDE
                            Dim cmdCtrlsBrowser As CommandControls = AddinGlobal.RibbonPanel3DCSBrowser.CommandControls
                            cmdCtrlsBrowser.AddComboBox(comboBox1)&lt;/PRE&gt;&lt;P&gt;When i try to sent the OnSelect Event from AddIn class to my class ButtonActions i couldn't catch the NameValueMap&lt;/P&gt;&lt;PRE&gt;AddHandler comboBox1.OnSelect, AddressOf ButtonActions.ComboBox1_Execute3&lt;/PRE&gt;&lt;P&gt;With Buttons it works fine but there is no NameValueMap, for example:&lt;/P&gt;&lt;PRE&gt;buttonPart5.Execute = AddressOf ButtonActions.buttonPart5_Execute&lt;/PRE&gt;&lt;P&gt;Did anyone has an idea in which way i have to handle the OnSelect event and receiving the selected Index of the ComboBox from the NameValueMap?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 11:51:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8094636#M87328</guid>
      <dc:creator>Martin-Winkler-Consulting</dc:creator>
      <dc:date>2018-06-27T11:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox in Ribbon Panel with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8094777#M87329</link>
      <description>&lt;PRE&gt;Private Sub ComboBox1_OnSelect(Context As NameValueMap) Handles ComboBox1.OnSelect
            MsgBox(Context.Text)
        End Sub
    End Class&lt;/PRE&gt;&lt;P&gt;Add this to your code and remove the handler...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 12:41:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8094777#M87329</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-06-27T12:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox in Ribbon Panel with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8094940#M87330</link>
      <description>&lt;P&gt;Thanks at &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&lt;/P&gt;&lt;P&gt;i tried it, but the Context is empty.&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Context_Empty.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/516703i0C0CC7341D5B018C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Context_Empty.jpg" alt="Context_Empty.jpg" /&gt;&lt;/span&gt;&lt;/PRE&gt;&lt;PRE&gt;MsgBox(Context.Text)&lt;/PRE&gt;&lt;P&gt;fires an exception because there is Nothing.&lt;/P&gt;&lt;P&gt;Is the AddinServer the correct place monitoring the event object?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:27:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8094940#M87330</guid>
      <dc:creator>Martin-Winkler-Consulting</dc:creator>
      <dc:date>2018-06-27T13:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox in Ribbon Panel with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8094942#M87331</link>
      <description>&lt;P&gt;you wrote Msgbox ("event handler")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me the code worked fine I have tested...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:27:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8094942#M87331</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-06-27T13:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox in Ribbon Panel with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8094957#M87332</link>
      <description>&lt;P&gt;this is needed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Private Sub ComboBox1_OnSelect(Context As NameValueMap) Handles ComboBox1.OnSelect
           &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt; MsgBox(Context.Text)&lt;/FONT&gt;&lt;/STRONG&gt;
        End Sub
    End Class&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:30:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8094957#M87332</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-06-27T13:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox in Ribbon Panel with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8094994#M87333</link>
      <description>&lt;P&gt;This is the Result here using Context.Text:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Context_Empty2.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/516724iAC121FEBFA6CDC81/image-size/large?v=v2&amp;amp;px=999" role="button" title="Context_Empty2.jpg" alt="Context_Empty2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:38:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8094994#M87333</guid>
      <dc:creator>Martin-Winkler-Consulting</dc:creator>
      <dc:date>2018-06-27T13:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox in Ribbon Panel with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8095007#M87334</link>
      <description>&lt;P&gt;What inventor version are you using?&lt;/P&gt;&lt;P&gt;what framework do you use?&lt;/P&gt;&lt;P&gt;What references are missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the code works fine by my add ins!!!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:41:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8095007#M87334</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-06-27T13:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox in Ribbon Panel with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8095031#M87335</link>
      <description>&lt;P&gt;Inventor 2018&lt;/P&gt;&lt;P&gt;Visual Studio Community 2017&lt;/P&gt;&lt;P&gt;I think references are fine, all other stuff works&lt;/P&gt;&lt;P&gt;I will try it in another test project and with VS 2015&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:48:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8095031#M87335</guid>
      <dc:creator>Martin-Winkler-Consulting</dc:creator>
      <dc:date>2018-06-27T13:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox in Ribbon Panel with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8095038#M87336</link>
      <description>&lt;P&gt;VS 2017 is not supported.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:50:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8095038#M87336</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-06-27T13:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox in Ribbon Panel with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8095058#M87337</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Combobox.PNG" style="width: 222px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/516742iBC2F31D62777021E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Combobox.PNG" alt="Combobox.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I use VS 2015, because of issues with VS 2017.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 13:55:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8095058#M87337</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-06-27T13:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox in Ribbon Panel with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8095330#M87338</link>
      <description>&lt;P&gt;&lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://forums.autodesk.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/P&gt;&lt;P&gt;same with VS2015. There has to be another reason.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="VS Studio2015_1.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/516776i700744945A1EC721/image-size/large?v=v2&amp;amp;px=999" role="button" title="VS Studio2015_1.jpg" alt="VS Studio2015_1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 15:27:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8095330#M87338</guid>
      <dc:creator>Martin-Winkler-Consulting</dc:creator>
      <dc:date>2018-06-27T15:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox in Ribbon Panel with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8095529#M87339</link>
      <description>Try to Use a different framework....</description>
      <pubDate>Wed, 27 Jun 2018 16:45:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8095529#M87339</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-06-27T16:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: ComboBox in Ribbon Panel with vb.net</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8097296#M87340</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&lt;/P&gt;&lt;P&gt;thanks for your help and your solution. It was a good inspiration.&lt;/P&gt;&lt;P&gt;I made a workarround and could get this version which works properly in my AddinServer Class&lt;/P&gt;&lt;P&gt;First i declared comboBox1 as Public with Events&lt;/P&gt;&lt;PRE&gt;Public Class FreeTools_3DCS
    Implements Inventor.ApplicationAddInServer
    Public WithEvents comboBox1 As ComboBoxDefinition
.........&lt;/PRE&gt;&lt;P&gt;then defined it and AddHandler to a Sub ComboBox1_OnSelect() in the same Addin Server Class&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'Combo Box Definitions
                comboBox1 = AddinGlobal.InventorApp.CommandManager.ControlDefinitions.AddComboBoxDefinition(
                        "Value1", "Value2", CommandTypesEnum.kQueryOnlyCmdType,
                        400, Guid.NewGuid().ToString(),
                        "Browsernanmen wiederherstellen", "Stellt den ursprünglichen Display Namen der zugehörigen Datei wieder her",
                        ButtonDisplayEnum.kDisplayTextInLearningMode)

                comboBox1.AddItem("Value1")
                comboBox1.AddItem("Value2")
                comboBox1.AddItem("ComboBoxItem #3")
                comboBox1.DescriptionText = "Test ComboBox"
                comboBox1.ListIndex = 1
                AddHandler comboBox1.OnSelect, AddressOf ComboBox1_OnSelect&lt;/PRE&gt;&lt;P&gt;then got it in this Sub&lt;/P&gt;&lt;PRE&gt;Private Sub ComboBox1_OnSelect()
 MsgBox(comboBox1.Text &amp;amp; " - " &amp;amp; comboBox1.ListIndex.ToString)
End Sub&lt;/PRE&gt;&lt;P&gt;and here is the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ComboBox_Action.jpg" style="width: 368px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/517096iF1E7CAC3AAFCA86A/image-size/large?v=v2&amp;amp;px=999" role="button" title="ComboBox_Action.jpg" alt="ComboBox_Action.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 10:58:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/combobox-in-ribbon-panel-with-vb-net/m-p/8097296#M87340</guid>
      <dc:creator>Martin-Winkler-Consulting</dc:creator>
      <dc:date>2018-06-28T10:58:02Z</dc:date>
    </item>
  </channel>
</rss>

