CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2002
    Location
    Colombo, Sri Lanka
    Posts
    2

    Angry Drag and Drop a user Control

    Hi

    I have a problem in draging and droping a user control physically from one point to another. I can drag a text or a bit map but not the control itself. I want the user control to move with the mouse pointer when i drag the control. Please can anyone help me. I stuck in this for a long time now. Thanks in advance.
    Last edited by buddhiw; November 4th, 2002 at 01:08 AM.
    Buddhi

  2. #2
    Join Date
    Sep 2000
    Location
    Indianapolis
    Posts
    6,758
    This is an 'unthought out' answer:

    Can you capture the mouse events and then change the location properties of the control as the mouse moves?

  3. #3
    Join Date
    Nov 2002
    Location
    Colombo, Sri Lanka
    Posts
    2
    Hi Brad

    I have done that and that works but i am wondering that is it the correct way to do the drag and drop. I can not do the drag and drop with the events and methods that c# has provided. Thank you very much for your reply. That is very big help for me. If i find the correct way i will inform you. Thanks.

    Regards
    Buddhi

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured