<?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 Dockbel windows how to I add buttom to run Ilogic code ? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/dockbel-windows-how-to-i-add-buttom-to-run-ilogic-code/m-p/11590063#M145882</link>
    <description>&lt;P&gt;I am using a VBA for today to run some Ilogic code . but my users would I a dockbel version.&amp;nbsp; I have fund this code that create a windows that work like I wanted it to... but how do I add buttom to it ? can I move my VBA form in to it so I do not have to create it form buttom up ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the code I have is this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oUserInterfaceMgr As UserInterfaceManager
        oUserInterfaceMgr = ThisApplication.UserInterfaceManager

        ' Create a new dockable window
        Dim oWindow As DockableWindow
        oWindow = oUserInterfaceMgr.DockableWindows.Add("SampleClientId4", "TestWindowInternalName4", "Test Window4")

        ' Get the hwnd of the dialog to be added as a child
        ' CHANGE THIS VALUE!
        Dim hwnd As Long
        hwnd = 4851096

        ' Add the dialog as a child to the dockable window
        oWindow.AddChild(hwnd)' Her I would Like To add a UserControl Or Userfrom!!!!!

        ' Don't allow docking to top and bottom
        oWindow.DisabledDockingStates = DockingStateEnum.kDockTop And DockingStateEnum.kDockBottom

        ' Make the window visible
        oWindow.Visible = True&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 01 Dec 2022 08:19:51 GMT</pubDate>
    <dc:creator>Darkforce_the_ilogic_guy</dc:creator>
    <dc:date>2022-12-01T08:19:51Z</dc:date>
    <item>
      <title>Dockbel windows how to I add buttom to run Ilogic code ?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/dockbel-windows-how-to-i-add-buttom-to-run-ilogic-code/m-p/11590063#M145882</link>
      <description>&lt;P&gt;I am using a VBA for today to run some Ilogic code . but my users would I a dockbel version.&amp;nbsp; I have fund this code that create a windows that work like I wanted it to... but how do I add buttom to it ? can I move my VBA form in to it so I do not have to create it form buttom up ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the code I have is this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oUserInterfaceMgr As UserInterfaceManager
        oUserInterfaceMgr = ThisApplication.UserInterfaceManager

        ' Create a new dockable window
        Dim oWindow As DockableWindow
        oWindow = oUserInterfaceMgr.DockableWindows.Add("SampleClientId4", "TestWindowInternalName4", "Test Window4")

        ' Get the hwnd of the dialog to be added as a child
        ' CHANGE THIS VALUE!
        Dim hwnd As Long
        hwnd = 4851096

        ' Add the dialog as a child to the dockable window
        oWindow.AddChild(hwnd)' Her I would Like To add a UserControl Or Userfrom!!!!!

        ' Don't allow docking to top and bottom
        oWindow.DisabledDockingStates = DockingStateEnum.kDockTop And DockingStateEnum.kDockBottom

        ' Make the window visible
        oWindow.Visible = True&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 01 Dec 2022 08:19:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/dockbel-windows-how-to-i-add-buttom-to-run-ilogic-code/m-p/11590063#M145882</guid>
      <dc:creator>Darkforce_the_ilogic_guy</dc:creator>
      <dc:date>2022-12-01T08:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Dockbel windows how to I add buttom to run Ilogic code ?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/dockbel-windows-how-to-i-add-buttom-to-run-ilogic-code/m-p/11594433#M145989</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt; f as Windows.Forms.Form = New Windows.Forms.Form
                
                My_DockableWindow = ThisApplication.UserInterfaceManager.DockableWindows.Add(AddInClientID, AddInClientID, "NAMEX") 
                My_DockableWindow.AddChild(f.Handle.ToInt64)
                My_DockableWindow.Width = 400
                My_DockableWindow.SetMinimumSize(400, 400)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this:&lt;/P&gt;
&lt;P&gt;You need to create a form first and add it to the Dockable Window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Arthur Knoors&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 22:22:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/dockbel-windows-how-to-i-add-buttom-to-run-ilogic-code/m-p/11594433#M145989</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2022-12-02T22:22:51Z</dc:date>
    </item>
  </channel>
</rss>

