<?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: User Form won't minimize with Arcmap in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/user-form-won-t-minimize-with-arcmap/m-p/573697#M15446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The form is opened via a command button on a toolbar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Imports ESRI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcMapUI
Imports ESRI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Carto
Imports System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Windows
Public Class &lt;SPAN class="token class-name"&gt;cmdOpenClosureForm&lt;/SPAN&gt;
 Inherits ESRI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Desktop&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddIns&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Button
Protected Overrides Sub &lt;SPAN class="token function"&gt;OnClick&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 Try
 'Opens the Rd Closure Dialog
 Dim pMxDoc As IMxDocument
 Dim pActiveView As IActiveView
 Dim pGraphicsContainer As IGraphicsContainer
 Dim application &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; My&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcMap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Application
 Dim isOpened As Boolean &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; False
 Dim theForm As frmAddSnoClosures &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Nothing
&lt;SPAN class="string token"&gt;'Make sure that the form isn'&lt;/SPAN&gt;t already open&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
 For Each frm As Windows&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Forms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Form In Windows&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Forms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Application&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OpenForms
 If TypeOf frm Is frmAddSnoClosures Then
 isOpened &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; True
 theForm &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; frm
 End If
 Next
If Not isOpened Then
 theForm &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; New frmAddSnoClosures
 End If
pMxDoc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; application&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Document
 pActiveView &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pMxDoc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FocusMap
 pGraphicsContainer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pActiveView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GraphicsContainer
'Open the Form
 theForm&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Show&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 pGraphicsContainer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;DeleteAllElements&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
pMxDoc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Nothing
 pActiveView &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Nothing
 pGraphicsContainer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Nothing
 Catch ex As Exception
 &lt;SPAN class="token function"&gt;globalErrorHandler&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ex&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 End Try
 End Sub
End Class&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the TopMost property that was previously mentioned and, once I changed the property from TRUE to FALSE and tried to rebuild my project, I got a series of errors which I now can't get rid of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/300372_contextError.jpg" style="width: 620px; height: 406px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The blue highlighted line is an example of one of the lines throwing the new error. It's all related, I'm sure, but I'm not understanding it..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 00:41:41 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2021-12-12T00:41:41Z</dc:date>
    <item>
      <title>User Form won't minimize with Arcmap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/user-form-won-t-minimize-with-arcmap/m-p/573694#M15443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure this is a simple fix but I'm feeling dense and I've never figured it out. I have a .NET add-in that includes a Windows Form. For whatever reason, the Windows form will not minimize WITH Arcmap and stays "on top" of any application. What setting do I set to have the Windows form stay on top of Arcmap UI items but still minimize with Arcmap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my form on top of my browser while Arcmap is minimized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/298505_frmScopeEx.jpg" style="width: 620px; height: 311px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2017 18:21:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/user-form-won-t-minimize-with-arcmap/m-p/573694#M15443</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2017-01-09T18:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: User Form won't minimize with Arcmap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/user-form-won-t-minimize-with-arcmap/m-p/573695#M15444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There could be a potential answer &lt;A _jive_internal="true" href="https://community.esri.com/message/290829?commentID=290829#comment-290829"&gt;here&lt;/A&gt;&amp;nbsp;but as ESRI in their wisdom have removed the old forum and not migrated this fully the answer is lost to us. Unless ESRI read this and make it available (hint hint!)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 11:51:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/user-form-won-t-minimize-with-arcmap/m-p/573695#M15444</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2017-01-11T11:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: User Form won't minimize with Arcmap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/user-form-won-t-minimize-with-arcmap/m-p/573696#M15445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your code that shows the form? Do you set the &lt;A href="https://msdn.microsoft.com/en-us/library/szcefbbd(v=vs.110).aspx"&gt;owner&lt;/A&gt; property?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jan 2017 15:14:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/user-form-won-t-minimize-with-arcmap/m-p/573696#M15445</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2017-01-12T15:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: User Form won't minimize with Arcmap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/user-form-won-t-minimize-with-arcmap/m-p/573697#M15446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The form is opened via a command button on a toolbar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Imports ESRI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcMapUI
Imports ESRI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Carto
Imports System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Windows
Public Class &lt;SPAN class="token class-name"&gt;cmdOpenClosureForm&lt;/SPAN&gt;
 Inherits ESRI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Desktop&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;AddIns&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Button
Protected Overrides Sub &lt;SPAN class="token function"&gt;OnClick&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 Try
 'Opens the Rd Closure Dialog
 Dim pMxDoc As IMxDocument
 Dim pActiveView As IActiveView
 Dim pGraphicsContainer As IGraphicsContainer
 Dim application &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; My&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcMap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Application
 Dim isOpened As Boolean &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; False
 Dim theForm As frmAddSnoClosures &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Nothing
&lt;SPAN class="string token"&gt;'Make sure that the form isn'&lt;/SPAN&gt;t already open&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
 For Each frm As Windows&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Forms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Form In Windows&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Forms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Application&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OpenForms
 If TypeOf frm Is frmAddSnoClosures Then
 isOpened &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; True
 theForm &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; frm
 End If
 Next
If Not isOpened Then
 theForm &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; New frmAddSnoClosures
 End If
pMxDoc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; application&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Document
 pActiveView &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pMxDoc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;FocusMap
 pGraphicsContainer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pActiveView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GraphicsContainer
'Open the Form
 theForm&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Show&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 pGraphicsContainer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;DeleteAllElements&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
pMxDoc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Nothing
 pActiveView &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Nothing
 pGraphicsContainer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Nothing
 Catch ex As Exception
 &lt;SPAN class="token function"&gt;globalErrorHandler&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ex&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 End Try
 End Sub
End Class&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the TopMost property that was previously mentioned and, once I changed the property from TRUE to FALSE and tried to rebuild my project, I got a series of errors which I now can't get rid of:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/300372_contextError.jpg" style="width: 620px; height: 406px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The blue highlighted line is an example of one of the lines throwing the new error. It's all related, I'm sure, but I'm not understanding it..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:41:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/user-form-won-t-minimize-with-arcmap/m-p/573697#M15446</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2021-12-12T00:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: User Form won't minimize with Arcmap</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/user-form-won-t-minimize-with-arcmap/m-p/573698#M15447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The suggestion by &lt;A href="https://community.esri.com/migrated-users/4563" target="_blank"&gt;Duncan Hornby&lt;/A&gt;‌ was the correct answer. Although the link from the old forum was bad, I think I &lt;A _jive_internal="true" href="https://community.esri.com/message/245183?commentID=245183#comment-245183" target="_blank"&gt;found a thread&lt;/A&gt; that did make it over into GeoNet that had the correct solution. TopMost property did not solve the issue; rather, it was adding a little bit of code to the form's show method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;theForm&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Show&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Windows&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Forms&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Control&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FromHandle&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;My&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcMap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Application&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;hWnd&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my last post, I mentioned that playing with the TopMost property introduced a series of new errors into my project. That was a weird one but I finally figured out a way to correct it. On my user form, I use rectangleShapes to indicate to the user when they have successfully completed input steps in their workflow (when they complete a step, the shading behind that input turns green). RectangleShapes are part of Microsoft's Powerpack controls and, for whatever reason, the rectangleShape is a "private" control whereas every other form control used is public. I was trying to update the properties of the rectangleShape from the code from outside the scope of the form's codebase so that wasn't allowed. To work around this, I added several public properties to my form which allow me to do what I need to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Public Property &lt;SPAN class="token function"&gt;toLocationTag&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; As String
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return Me&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fraToLoc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Tag
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;Set&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;value As String&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fraToLoc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Tag &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; value
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Set
End Property

Public Property &lt;SPAN class="token function"&gt;fromLocationVisibility&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; As Boolean
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Get
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return Me&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fraFromLoc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Visible
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Get
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="token function"&gt;Set&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;value As Boolean&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;fraFromLoc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Visible &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; value
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End Set
End Property‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Back on track. Yay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:41:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/user-form-won-t-minimize-with-arcmap/m-p/573698#M15447</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2021-12-12T00:41:44Z</dc:date>
    </item>
  </channel>
</rss>

