<?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: Form always on top behavior - vb.net in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452096#M12290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Very helpful! I've never done anything like that before, but I was able to figure it out with the documentation you provided and some googling. I now have the Enhanced Modeless Dialogs working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Corbin de Bruin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jan 2013 14:08:29 GMT</pubDate>
    <dc:creator>Corbinde_Bruin</dc:creator>
    <dc:date>2013-01-03T14:08:29Z</dc:date>
    <item>
      <title>Form always on top behavior - vb.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452090#M12284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm programming an addin with a form and I'd like the form stay on top of ArcMap. The always on top property of the form makes it always on top of every window I have open.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like it to behave like all the other ArcMap forms do: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Only the top most form when they have focus.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Always on top of ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Never on top of other open programs that have focus.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cdebruin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 11:32:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452090#M12284</guid>
      <dc:creator>Corbinde_Bruin</dc:creator>
      <dc:date>2012-12-06T11:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: Form always on top behavior - vb.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452091#M12285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll need to set the ArcMap window as the form's owner.&amp;nbsp; In the code below, m_application is a reference to the ArcMap application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;yourForm.Show(System.Windows.Forms.Control.FromHandle((IntPtr)m_application.hWnd));&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 12:08:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452091#M12285</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2012-12-06T12:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Form always on top behavior - vb.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452092#M12286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for responding Neil!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Translated to vb.net&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;yourForm.Show(System.Windows.Forms.Control.FromHandle(CType(m_application.hWnd, IntPtr)))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;cdebruin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 12:39:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452092#M12286</guid>
      <dc:creator>Corbinde_Bruin</dc:creator>
      <dc:date>2012-12-06T12:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Form always on top behavior - vb.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452093#M12287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's how to do it for an addin in VB.Net&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;MyFormInstanceName.Show(System.Windows.Forms.Control.FromHandle(My.ArcMap.Application.hWnd))&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to Jim Isbell for &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/52107-VB-.NET-Calling-a-Form?p=219656&amp;amp;viewfull=1#post219656"&gt;this&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 12:54:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452093#M12287</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2012-12-06T12:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Form always on top behavior - vb.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452094#M12288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interestingly, the tab key stops working if I use .Show() instead of .ShowDialog(). It simply no longer navigates from control to control. Any way to make the tab stops work with .Show()? Any one else even aware of this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Nevermind. I found this forum post:&lt;/STRONG&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/68761-Add-In-Tab-Key-problems?highlight=tab%2C+stops"&gt;http://forums.arcgis.com/threads/68761-Add-In-Tab-Key-problems?highlight=tab%2C+stops&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 15:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452094#M12288</guid>
      <dc:creator>Corbinde_Bruin</dc:creator>
      <dc:date>2013-01-02T15:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Form always on top behavior - vb.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452095#M12289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are several ways to solve the problem.&amp;nbsp; One way is to add code to the form's key press events to handle such things as tabbing, mnemonics, accept/cancel, etc.&amp;nbsp; The drawback to this is that you have to add the code to every modeless form you create.&amp;nbsp; A better way is to create a blank form with the custom code, put it in a code library and have all of your forms inherit from it.&amp;nbsp; I'm attaching a code sample I wrote several years back that shows how you might do this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 16:05:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452095#M12289</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2013-01-02T16:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Form always on top behavior - vb.net</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452096#M12290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Neil,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Very helpful! I've never done anything like that before, but I was able to figure it out with the documentation you provided and some googling. I now have the Enhanced Modeless Dialogs working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Corbin de Bruin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jan 2013 14:08:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/form-always-on-top-behavior-vb-net/m-p/452096#M12290</guid>
      <dc:creator>Corbinde_Bruin</dc:creator>
      <dc:date>2013-01-03T14:08:29Z</dc:date>
    </item>
  </channel>
</rss>

