<?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 Open HTML Popup programmatically in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/open-html-popup-programmatically/m-p/662956#M17767</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have built a tool that creates an extent and fills in an array based on using an IIdentify object to Identify within that envelope. Normally I take the value from the display field of a layer and open a separate form. But now I want to just open the HTML Popup for that first item in the array. Here is the code I have to that point. Does anyone know how to open the HTML Popup from there? I have the UID and everything, but I'm not sure how to open with that selected item already&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pEnumLayer As IEnumLayer = pDoc.FocusMap.Layers(pId, True)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Convert x and y to map units
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pAV As IActiveView = CType(pMap, IActiveView)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pDT As IDisplayTransformation = pAV.ScreenDisplay.DisplayTransformation

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pPoint As IPoint = pDT.ToMapPoint(x, y)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pEnv As IEnvelope = pPoint.Envelope

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' expand the envelope 1/120th of the visible screen width
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pEnv.Expand((pDT.VisibleBounds.Width / 120.0#), (pDT.VisibleBounds.Height / 120.0#), False)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pIDArray As IArray = pIdentify.Identify(pEnv)
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Nov 2012 23:56:07 GMT</pubDate>
    <dc:creator>TonyDupont</dc:creator>
    <dc:date>2012-11-09T23:56:07Z</dc:date>
    <item>
      <title>Open HTML Popup programmatically</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/open-html-popup-programmatically/m-p/662956#M17767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have built a tool that creates an extent and fills in an array based on using an IIdentify object to Identify within that envelope. Normally I take the value from the display field of a layer and open a separate form. But now I want to just open the HTML Popup for that first item in the array. Here is the code I have to that point. Does anyone know how to open the HTML Popup from there? I have the UID and everything, but I'm not sure how to open with that selected item already&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pEnumLayer As IEnumLayer = pDoc.FocusMap.Layers(pId, True)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Convert x and y to map units
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pAV As IActiveView = CType(pMap, IActiveView)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pDT As IDisplayTransformation = pAV.ScreenDisplay.DisplayTransformation

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pPoint As IPoint = pDT.ToMapPoint(x, y)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pEnv As IEnvelope = pPoint.Envelope

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' expand the envelope 1/120th of the visible screen width
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pEnv.Expand((pDT.VisibleBounds.Width / 120.0#), (pDT.VisibleBounds.Height / 120.0#), False)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pIDArray As IArray = pIdentify.Identify(pEnv)
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 23:56:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/open-html-popup-programmatically/m-p/662956#M17767</guid>
      <dc:creator>TonyDupont</dc:creator>
      <dc:date>2012-11-09T23:56:07Z</dc:date>
    </item>
  </channel>
</rss>

