<?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: Running registered commands from contextmenu in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/running-registered-commands-from-contextmenu/m-p/2933338#M61738</link>
    <description>&lt;P&gt;The context menu click handler should be a separate sub that uses SendStringToExecute to call your command method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't remember what error I got, but when I tried to make the handler call the Sub directly, it gave me a runtime error.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2011 23:17:59 GMT</pubDate>
    <dc:creator>chiefbraincloud</dc:creator>
    <dc:date>2011-02-28T23:17:59Z</dc:date>
    <item>
      <title>Running registered commands from contextmenu</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-registered-commands-from-contextmenu/m-p/2933276#M61737</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need some help regarding how to run registered commands from contextmenu. I've successfully created the contextmenu and I am calling directly the subroutines, but what will be the best approach, using sendstringtoexecute? After all I've read, sendstringtoexecute is not recommended all the time. The reason why I want this is to simplify rerunning a command through right-click menu.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2011 22:27:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-registered-commands-from-contextmenu/m-p/2933276#M61737</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-28T22:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Running registered commands from contextmenu</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-registered-commands-from-contextmenu/m-p/2933338#M61738</link>
      <description>&lt;P&gt;The context menu click handler should be a separate sub that uses SendStringToExecute to call your command method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't remember what error I got, but when I tried to make the handler call the Sub directly, it gave me a runtime error.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2011 23:17:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-registered-commands-from-contextmenu/m-p/2933338#M61738</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2011-02-28T23:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Running registered commands from contextmenu</title>
      <link>https://forums.autodesk.com/t5/net-forum/running-registered-commands-from-contextmenu/m-p/2933358#M61739</link>
      <description>&lt;P&gt;Right now I have the code directly in the handler and it is working ok, but to repeat the command I have to right-click again and choose the command (actually from&amp;nbsp; the submenu). I f I separate the code into a different sub and use SendStringToExecute, the code won't work first time because it is asynchronous (I think), though I will get the command in "Repeat Command" and "Recent Command" and this is what I want too, but I feel that I am missing something and I don't know what.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2011 23:35:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/running-registered-commands-from-contextmenu/m-p/2933358#M61739</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-28T23:35:03Z</dc:date>
    </item>
  </channel>
</rss>

