<?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 How to change the ArcMap cursor from winForm app in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-change-the-arcmap-cursor-from-winform-app/m-p/574105#M3856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building an ArcMap add-in.&amp;nbsp; When the user selects my tool and then clicks a parcel, I extract details about the selected parcel, open a new winForm, and pass those into the newly opened winForm.&amp;nbsp; The GIS tech can then update parcel features in that winForm and save back to ArcMap.&amp;nbsp; In some cases, the tech may need to click additional parcels before finishing working in the winForm, so we have special buttons on the winForm to allow them to click more parcels in ArcMap.&amp;nbsp; Question is, how can I change the ArcMap cursor from my winForm when these special buttons are clicked?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 18:27:03 GMT</pubDate>
    <dc:creator>StevenMumby</dc:creator>
    <dc:date>2015-04-17T18:27:03Z</dc:date>
    <item>
      <title>How to change the ArcMap cursor from winForm app</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-change-the-arcmap-cursor-from-winform-app/m-p/574105#M3856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm building an ArcMap add-in.&amp;nbsp; When the user selects my tool and then clicks a parcel, I extract details about the selected parcel, open a new winForm, and pass those into the newly opened winForm.&amp;nbsp; The GIS tech can then update parcel features in that winForm and save back to ArcMap.&amp;nbsp; In some cases, the tech may need to click additional parcels before finishing working in the winForm, so we have special buttons on the winForm to allow them to click more parcels in ArcMap.&amp;nbsp; Question is, how can I change the ArcMap cursor from my winForm when these special buttons are clicked?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 18:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-change-the-arcmap-cursor-from-winform-app/m-p/574105#M3856</guid>
      <dc:creator>StevenMumby</dc:creator>
      <dc:date>2015-04-17T18:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the ArcMap cursor from winForm app</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-change-the-arcmap-cursor-from-winform-app/m-p/574106#M3857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can change the IMousecursor with this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Dim pMouseCursor As New ESRI.ArcGIS.Framework.MouseCursor
pMouseCursor.SetCursor(2)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/SetCursor_Method/0023000000rr000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;These&lt;/A&gt; are the pre-installed cursors. The documentation show how to add custom cursors&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:42:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-change-the-arcmap-cursor-from-winform-app/m-p/574106#M3857</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-12T00:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the ArcMap cursor from winForm app</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-change-the-arcmap-cursor-from-winform-app/m-p/574107#M3858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Ken&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trick is how to change the cursor on the ArcMap map FROM the opened winForm?&amp;nbsp; How do I get a reference from the winForm back to ArcMap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 19:30:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-change-the-arcmap-cursor-from-winform-app/m-p/574107#M3858</guid>
      <dc:creator>StevenMumby</dc:creator>
      <dc:date>2015-04-17T19:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the ArcMap cursor from winForm app</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-change-the-arcmap-cursor-from-winform-app/m-p/574108#M3859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the way I've done this from a Windows Form. For example, I have a DrawTool form in an add-in. When the user clicks on one of the buttons, the cursor will change on ArcMap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Private Sub Draw_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPoint.Click, btnLocation.Click, btnPolygon.Click, btnFreehand.Click, btnRectangle.Click

&amp;nbsp;&amp;nbsp; Select Case sender.name
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Case "btnPoint"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pMouseCursor As New ESRI.ArcGIS.Framework.MouseCursor
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pMouseCursor.SetCursor(2)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // more cases
&amp;nbsp;&amp;nbsp; End Select

End Sub&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:43:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-change-the-arcmap-cursor-from-winform-app/m-p/574108#M3859</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-12-12T00:43:00Z</dc:date>
    </item>
  </channel>
</rss>

