<?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: Check form loaded and hidden in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/check-form-loaded-and-hidden/m-p/8915431#M21802</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a static (Shared) field to store the form instance that you initialize only once per session if it's null (Nothing).&lt;/P&gt;
&lt;PRE&gt;        static Dialog formShapes = null;

        public static void SomeMethod()
        {
            var doc = Application.DocumentManager.MdiActiveDocument;
            if (formShapes == null)
                formShapes = new Dialog(); // or whatever the form class name&lt;BR /&gt;
            Application.ShowModalDialog(doc.Window.Handle, formShapes, false);&lt;BR /&gt;            [...]
        }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2019 19:21:14 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2019-07-17T19:21:14Z</dc:date>
    <item>
      <title>Check form loaded and hidden</title>
      <link>https://forums.autodesk.com/t5/net-forum/check-form-loaded-and-hidden/m-p/8915387#M21801</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am loading a form which is populated with several pictures and controls.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a small delay in it's loading so I would like to hide it and make it visible again.&lt;/P&gt;&lt;P&gt;How do I check if it's loaded?&lt;/P&gt;&lt;PRE&gt;            If SOMETHING Then
                FormShapes.Show()
            Else
                Application.ShowModalDialog(Application.MainWindow.Handle, FormShapes, False)
            End If&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 18:52:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/check-form-loaded-and-hidden/m-p/8915387#M21801</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2019-07-17T18:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Check form loaded and hidden</title>
      <link>https://forums.autodesk.com/t5/net-forum/check-form-loaded-and-hidden/m-p/8915431#M21802</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use a static (Shared) field to store the form instance that you initialize only once per session if it's null (Nothing).&lt;/P&gt;
&lt;PRE&gt;        static Dialog formShapes = null;

        public static void SomeMethod()
        {
            var doc = Application.DocumentManager.MdiActiveDocument;
            if (formShapes == null)
                formShapes = new Dialog(); // or whatever the form class name&lt;BR /&gt;
            Application.ShowModalDialog(doc.Window.Handle, formShapes, false);&lt;BR /&gt;            [...]
        }&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 19:21:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/check-form-loaded-and-hidden/m-p/8915431#M21802</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2019-07-17T19:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Check form loaded and hidden</title>
      <link>https://forums.autodesk.com/t5/net-forum/check-form-loaded-and-hidden/m-p/8915483#M21803</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2019 19:44:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/check-form-loaded-and-hidden/m-p/8915483#M21803</guid>
      <dc:creator>SRSDS</dc:creator>
      <dc:date>2019-07-17T19:44:30Z</dc:date>
    </item>
  </channel>
</rss>

