Drag and Drop btw WinForm and WPF control RRS feed

  • Question

  • hi.. group,


    I have a wired situation. I tried to do drag and drop from a WinForm control to WPF control.


    In WinForm control, my code is:

        myUserControl.DoDragDrop(myData, DragDropEffects.Move);


    On WPF Control, I tried to get the data:




    I got an exception saying: HRESULT_FAIL from some COM, blah blah blah..


    I can use e.Data.GetDataPresent(typeof(MyData)) without any problem.


    Can somebody give me a hint how to fix this problem?



    Thursday, July 5, 2007 2:12 PM


  • It is wired. I added this.AllowDrop = true. the exception does not happen any more..


    Something must be wrong on my system.


    Thursday, July 5, 2007 3:40 PM