<?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 Are prompts allowed in OnToolActivateAsync in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/are-prompts-allowed-in-ontoolactivateasync/m-p/838067#M3654</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a user activates a map tool, I want to prompt them for a folder using FolderBrowserDialog. As soon as the dialog opens, the application hangs.&amp;nbsp; To simplify this test, I also tried just showing a message box. The message box shows, but then the application hangs, and I cannot click OK on the message box or interact with the rest of Pro.&amp;nbsp; Is there a way to prompt the user during OnToolActivateAsync? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;protected override Task OnToolActivateAsync(bool hasMapViewChanged)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show("Now we are stuck");
&amp;nbsp;&amp;nbsp;&amp;nbsp; return base.OnToolActivateAsync(hasMapViewChanged);
}&lt;/PRE&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;P&gt;Windows 10&lt;/P&gt;&lt;P&gt;Visual Studio 2017 Community Edition&lt;/P&gt;&lt;P&gt;Pro SDK for .NET (and Utilities) 2.3.0.15769&lt;/P&gt;&lt;P&gt;Pro 2.3.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:59:12 GMT</pubDate>
    <dc:creator>TimWhiteaker</dc:creator>
    <dc:date>2021-12-12T16:59:12Z</dc:date>
    <item>
      <title>Are prompts allowed in OnToolActivateAsync</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/are-prompts-allowed-in-ontoolactivateasync/m-p/838067#M3654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a user activates a map tool, I want to prompt them for a folder using FolderBrowserDialog. As soon as the dialog opens, the application hangs.&amp;nbsp; To simplify this test, I also tried just showing a message box. The message box shows, but then the application hangs, and I cannot click OK on the message box or interact with the rest of Pro.&amp;nbsp; Is there a way to prompt the user during OnToolActivateAsync? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;protected override Task OnToolActivateAsync(bool hasMapViewChanged)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show("Now we are stuck");
&amp;nbsp;&amp;nbsp;&amp;nbsp; return base.OnToolActivateAsync(hasMapViewChanged);
}&lt;/PRE&gt;&lt;P&gt;Environment:&lt;/P&gt;&lt;P&gt;Windows 10&lt;/P&gt;&lt;P&gt;Visual Studio 2017 Community Edition&lt;/P&gt;&lt;P&gt;Pro SDK for .NET (and Utilities) 2.3.0.15769&lt;/P&gt;&lt;P&gt;Pro 2.3.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:59:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/are-prompts-allowed-in-ontoolactivateasync/m-p/838067#M3654</guid>
      <dc:creator>TimWhiteaker</dc:creator>
      <dc:date>2021-12-12T16:59:12Z</dc:date>
    </item>
  </channel>
</rss>

