<?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: Modal x Modeless Windows in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/modal-x-modeless-windows/m-p/13693946#M8171</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1098104"&gt;@xaotix&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I faced this issue before, and this worked with me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt; MyForm form= new MyForm();

 ElementHost.EnableModelessKeyboardInterop(form);
 IntPtr hwnd = NavisworksHelper.GetNavisworksMainWindowHandle();
 WindowInteropHelper helper = new WindowInteropHelper(form);
 helper.EnsureHandle();
 helper.Owner = hwnd;
 form.Show();&lt;/LI-CODE&gt;&lt;P&gt;If it worked please accept as solution&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jun 2025 14:38:23 GMT</pubDate>
    <dc:creator>ahmed.elhawary73</dc:creator>
    <dc:date>2025-06-23T14:38:23Z</dc:date>
    <item>
      <title>Modal x Modeless Windows</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/modal-x-modeless-windows/m-p/13692695#M8170</link>
      <description>&lt;P&gt;I have various windows in WPF in project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They are working fine when I call them by modal:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;.ShowWindow()&lt;/LI-CODE&gt;&lt;P&gt;Now I want the user to be able to interact with the model.&lt;BR /&gt;So I switched to modeless:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;.Show()&lt;/LI-CODE&gt;&lt;P&gt;But after that, all the textboxes are frozen.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How I can achieve this?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jun 2025 16:45:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/modal-x-modeless-windows/m-p/13692695#M8170</guid>
      <dc:creator>xaotix</dc:creator>
      <dc:date>2025-06-22T16:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Modal x Modeless Windows</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/modal-x-modeless-windows/m-p/13693946#M8171</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1098104"&gt;@xaotix&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I faced this issue before, and this worked with me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt; MyForm form= new MyForm();

 ElementHost.EnableModelessKeyboardInterop(form);
 IntPtr hwnd = NavisworksHelper.GetNavisworksMainWindowHandle();
 WindowInteropHelper helper = new WindowInteropHelper(form);
 helper.EnsureHandle();
 helper.Owner = hwnd;
 form.Show();&lt;/LI-CODE&gt;&lt;P&gt;If it worked please accept as solution&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 14:38:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/modal-x-modeless-windows/m-p/13693946#M8171</guid>
      <dc:creator>ahmed.elhawary73</dc:creator>
      <dc:date>2025-06-23T14:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Modal x Modeless Windows</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/modal-x-modeless-windows/m-p/13694487#M8172</link>
      <description>&lt;P&gt;Thx a lot.&lt;/P&gt;&lt;P&gt;Worked like a charm!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing that I needed to find out was what your GetNavisworksMainWindowHandle do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;            ElementHost.EnableModelessKeyboardInterop(window);
            IntPtr hwnd = ((MainWindow)Autodesk.Navisworks.Api.Application.Gui.MainWindow).Handle;
            WindowInteropHelper helper = new WindowInteropHelper(window);
            helper.EnsureHandle();
            helper.Owner = hwnd;
            window.Show();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2025 21:05:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/modal-x-modeless-windows/m-p/13694487#M8172</guid>
      <dc:creator>xaotix</dc:creator>
      <dc:date>2025-06-23T21:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modal x Modeless Windows</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/modal-x-modeless-windows/m-p/13695059#M8174</link>
      <description>&lt;P&gt;I'm glade to help&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 06:48:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/modal-x-modeless-windows/m-p/13695059#M8174</guid>
      <dc:creator>ahmed.elhawary73</dc:creator>
      <dc:date>2025-06-24T06:48:38Z</dc:date>
    </item>
  </channel>
</rss>

