<?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 Mouse Cursor while dragging from .Net ListView to AutoCAD drawing area? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/mouse-cursor-while-dragging-from-net-listview-to-autocad-drawing/m-p/3791589#M50840</link>
    <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I have a ListView control from where I drag items to Drawing area. Whenever mouse leaves the ListView Control and enters the AutoCAD drawing area, AutoCAD claims the mouse cursor back to Cross Pointer.&lt;BR /&gt;&lt;BR /&gt;Is it possible to change this cursor during drag operation to a pointer with some attachment? As normally happened in Windows Explorer while dragging and dropping files among folders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a bunch.&lt;/P&gt;&lt;P&gt;Farrukh&lt;/P&gt;</description>
    <pubDate>Wed, 27 Feb 2013 17:21:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-27T17:21:11Z</dc:date>
    <item>
      <title>Mouse Cursor while dragging from .Net ListView to AutoCAD drawing area?</title>
      <link>https://forums.autodesk.com/t5/net-forum/mouse-cursor-while-dragging-from-net-listview-to-autocad-drawing/m-p/3791589#M50840</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I have a ListView control from where I drag items to Drawing area. Whenever mouse leaves the ListView Control and enters the AutoCAD drawing area, AutoCAD claims the mouse cursor back to Cross Pointer.&lt;BR /&gt;&lt;BR /&gt;Is it possible to change this cursor during drag operation to a pointer with some attachment? As normally happened in Windows Explorer while dragging and dropping files among folders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a bunch.&lt;/P&gt;&lt;P&gt;Farrukh&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 17:21:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mouse-cursor-while-dragging-from-net-listview-to-autocad-drawing/m-p/3791589#M50840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-27T17:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mouse Cursor while dragging from .Net ListView to AutoCAD drawing area?</title>
      <link>https://forums.autodesk.com/t5/net-forum/mouse-cursor-while-dragging-from-net-listview-to-autocad-drawing/m-p/3791860#M50841</link>
      <description>&lt;P&gt;&lt;SPAN&gt;You have a ListView where? &amp;nbsp;In an AutoCAD extension? &amp;nbsp;Or, in another application?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;I have a ListView control from where I drag items to Drawing area. Whenever mouse leaves the ListView Control and enters the AutoCAD drawing area, AutoCAD claims the mouse cursor back to Cross Pointer.&lt;BR /&gt;&lt;BR /&gt;Is it possible to change this cursor during drag operation to a pointer with some attachment? As normally happened in Windows Explorer while dragging and dropping files among folders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a bunch.&lt;/P&gt;&lt;P&gt;Farrukh&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2013 21:05:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mouse-cursor-while-dragging-from-net-listview-to-autocad-drawing/m-p/3791860#M50841</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2013-02-27T21:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mouse Cursor while dragging from .Net ListView to AutoCAD drawing area?</title>
      <link>https://forums.autodesk.com/t5/net-forum/mouse-cursor-while-dragging-from-net-listview-to-autocad-drawing/m-p/3792096#M50842</link>
      <description>Yes, its an AutoCAD Addin using C#</description>
      <pubDate>Thu, 28 Feb 2013 05:44:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mouse-cursor-while-dragging-from-net-listview-to-autocad-drawing/m-p/3792096#M50842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-28T05:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mouse Cursor while dragging from .Net ListView to AutoCAD drawing area?</title>
      <link>https://forums.autodesk.com/t5/net-forum/mouse-cursor-while-dragging-from-net-listview-to-autocad-drawing/m-p/3792491#M50843</link>
      <description>&lt;P&gt;Does this help?&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://adndevblog.typepad.com/autocad/2012/06/setting-the-wait-cursor-type-using-objectarx-and-win32.html"&gt;http://adndevblog.typepad.com/autocad/2012/06/setting-the-wait-cursor-type-using-objectarx-and-win32.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2013 15:03:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mouse-cursor-while-dragging-from-net-listview-to-autocad-drawing/m-p/3792491#M50843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-28T15:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Mouse Cursor while dragging from .Net ListView to AutoCAD drawing area?</title>
      <link>https://forums.autodesk.com/t5/net-forum/mouse-cursor-while-dragging-from-net-listview-to-autocad-drawing/m-p/3792902#M50844</link>
      <description>&lt;P&gt;You'll have to show the code you're using to start the drag and drop operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, the drag &amp;amp; drop cursor is displayed by AutoCAD, not by your application, and has nothing to do with setting a wait cursor or setting any type of cursor yourself, in case you followed the link posted in another reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2013 20:28:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mouse-cursor-while-dragging-from-net-listview-to-autocad-drawing/m-p/3792902#M50844</guid>
      <dc:creator>DiningPhilosopher</dc:creator>
      <dc:date>2013-02-28T20:28:35Z</dc:date>
    </item>
    <item>
      <title>Finally solved... :)</title>
      <link>https://forums.autodesk.com/t5/net-forum/mouse-cursor-while-dragging-from-net-listview-to-autocad-drawing/m-p/3795011#M50845</link>
      <description>&lt;P&gt;Ahhh, finally I solved it :). I was trying to change the mouse cursor from Cross to Pointer with attachement (i.e. Copying).&lt;/P&gt;&lt;P&gt;Got the tip from &lt;A title="Managing drag &amp;amp; drop from a palette into AutoCAD using .NET" href="http://through-the-interface.typepad.com/through_the_interface/2011/02/managing-drag-drop-from-a-palette-into-autocad-using-net.html" target="_blank"&gt;Managing drag &amp;amp; drop from a palette into AutoCAD using .NET. &lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our mouse event handler we have to call AutoCAD's Application.DoDragDrop method. Here is my implemention which worked as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// lv_Symbols: ListView control&lt;/P&gt;&lt;PRE&gt;       void lv_Symbols_ItemDrag(object sender, ItemDragEventArgs e)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_SelectedItem = e.Item as ListViewItem;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (lv_SelectedItem != null)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autodesk.AutoCAD.ApplicationServices.Application.DoDragDrop(this.lv_Symbols, "", DragDropEffects.Copy, new DroplvSymbols(lv_SelectedItem.Tag.ToString()));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Second parameter (DragDropEffects) &lt;/STRONG&gt;&lt;/U&gt;&lt;STRONG&gt;is used to chagge the mouse cursor, which exactly I wanted.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Last parameter of DoDragDrop is another class which is handling our Drop event. Here is the listings:&lt;/P&gt;&lt;PRE&gt;public class DroplvSymbols : Autodesk.AutoCAD.Windows.DropTarget
    {
        private string cmd; //This would be send to ACAD active document
       
// Constructor
        public DroplvSymbols(string ListViewItemTag)
        {
            this.cmd = ListViewItemTag;
        }

  //Handling Drop event. We send AutoCAD a command here.      
        public override void OnDrop(DragEventArgs e)
        {
            Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
            doc.SendStringToExecute(cmd, true, false, false);
        }
    }&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it would be beneficial for others too :).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks all for your efforts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Farrukh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2013 08:05:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/mouse-cursor-while-dragging-from-net-listview-to-autocad-drawing/m-p/3795011#M50845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-04T08:05:18Z</dc:date>
    </item>
  </channel>
</rss>

