<?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 EditBox text update on Project change in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/editbox-text-update-on-project-change/m-p/1050236#M6481</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have an EditBox that displays the current project path when a project is first opened.&amp;nbsp; The issue is when I open another project, the text in the EditBox does not change to reflect the new path.&lt;/P&gt;&lt;P&gt;internal class ProjectPathEditBox : ArcGIS.Desktop.Framework.Contracts.EditBox&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; public ProjectPathEditBox()&lt;BR /&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; string stringURI = Project.Current.URI;&lt;BR /&gt;&amp;nbsp; Text = stringURI;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the Text value to update when another project is opened?&amp;nbsp; Is using an EditBox the best way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 18:21:08 GMT</pubDate>
    <dc:creator>GeneLohrmeyer</dc:creator>
    <dc:date>2021-04-22T18:21:08Z</dc:date>
    <item>
      <title>EditBox text update on Project change</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/editbox-text-update-on-project-change/m-p/1050236#M6481</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have an EditBox that displays the current project path when a project is first opened.&amp;nbsp; The issue is when I open another project, the text in the EditBox does not change to reflect the new path.&lt;/P&gt;&lt;P&gt;internal class ProjectPathEditBox : ArcGIS.Desktop.Framework.Contracts.EditBox&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; public ProjectPathEditBox()&lt;BR /&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; string stringURI = Project.Current.URI;&lt;BR /&gt;&amp;nbsp; Text = stringURI;&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get the Text value to update when another project is opened?&amp;nbsp; Is using an EditBox the best way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 18:21:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/editbox-text-update-on-project-change/m-p/1050236#M6481</guid>
      <dc:creator>GeneLohrmeyer</dc:creator>
      <dc:date>2021-04-22T18:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: EditBox text update on Project change</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/editbox-text-update-on-project-change/m-p/1050471#M6485</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Register project open event in module and then update text box. Not tested but should work.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  private Module1()
        {
            ProjectOpenedEvent.Subscribe(OnProjectOpen);
        }

  private void OnProjectOpen(ProjectEventArgs args)
        {
        //Get current project path and update text box   
        //args.Project.HomeFolderPath  
        }
        &lt;/LI-CODE&gt;&lt;P&gt;-Prashant&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 02:07:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/editbox-text-update-on-project-change/m-p/1050471#M6485</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2021-04-23T02:07:01Z</dc:date>
    </item>
  </channel>
</rss>

