<?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: VB.net Menubar in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/vb-net-menubar/m-p/5911837#M37898</link>
    <description>&lt;P&gt;You may want to make things a bit clearer: do you want to add menu in your own UI (your modal/modeless dialog form; or do you want to add menu item to AutoCAD's menu (Ribbon menu, I suppose)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the former, you simply drag menu/toolbar control from ToolBox to your form in VisualStudio design mode...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the latter, I'd suggest to first consider to customize&amp;nbsp;*.cuix file, so that you can define&amp;nbsp;menu/ribbon item to run your application (be it is for logging in or something else). This is the easiest and most common way to make AutoCAD run custom apps/commands.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have to dynamically create menu/ribbon item by your code (that is, you have to get your application load first), then, yes, you need to set reference to acWindows.dll and adWindows.dll (mostly you only need AdWindows.dll) And then in VS' Object Browser, you can look for "Autodesk.Windows.Ribbonxxxx".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This link would get you started:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/07/modify-ribbon.html" target="_self"&gt;http://adndevblog.typepad.com/autocad/2012/07/modify-ribbon.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Nov 2015 14:37:19 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2015-11-17T14:37:19Z</dc:date>
    <item>
      <title>VB.net Menubar</title>
      <link>https://forums.autodesk.com/t5/net-forum/vb-net-menubar/m-p/5911761#M37897</link>
      <description>&lt;P&gt;I need to add menubar for my application.&lt;/P&gt;&lt;P&gt;iam using autocad 2015 and Vs 2012 vb.net.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need the mainmenu and sub menu&amp;nbsp;&lt;/P&gt;&lt;P&gt;then the submenu linked with my module to open login form&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i import these namespaces&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imports Autodesk.AutoCAD.Windows&lt;BR /&gt;Imports Autodesk.Windows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help plz?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 14:03:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/vb-net-menubar/m-p/5911761#M37897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-17T14:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: VB.net Menubar</title>
      <link>https://forums.autodesk.com/t5/net-forum/vb-net-menubar/m-p/5911837#M37898</link>
      <description>&lt;P&gt;You may want to make things a bit clearer: do you want to add menu in your own UI (your modal/modeless dialog form; or do you want to add menu item to AutoCAD's menu (Ribbon menu, I suppose)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the former, you simply drag menu/toolbar control from ToolBox to your form in VisualStudio design mode...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the latter, I'd suggest to first consider to customize&amp;nbsp;*.cuix file, so that you can define&amp;nbsp;menu/ribbon item to run your application (be it is for logging in or something else). This is the easiest and most common way to make AutoCAD run custom apps/commands.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have to dynamically create menu/ribbon item by your code (that is, you have to get your application load first), then, yes, you need to set reference to acWindows.dll and adWindows.dll (mostly you only need AdWindows.dll) And then in VS' Object Browser, you can look for "Autodesk.Windows.Ribbonxxxx".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This link would get you started:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://adndevblog.typepad.com/autocad/2012/07/modify-ribbon.html" target="_self"&gt;http://adndevblog.typepad.com/autocad/2012/07/modify-ribbon.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Nov 2015 14:37:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/vb-net-menubar/m-p/5911837#M37898</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2015-11-17T14:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: VB.net Menubar</title>
      <link>https://forums.autodesk.com/t5/net-forum/vb-net-menubar/m-p/5919453#M37899</link>
      <description>&lt;P&gt;thanks norman&lt;BR /&gt;now i already created riboon button and my question how to control the size of ribbon button ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2015 09:56:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/vb-net-menubar/m-p/5919453#M37899</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-22T09:56:32Z</dc:date>
    </item>
  </channel>
</rss>

