I am looking for a example of how to get information from a WPF .dll (in a drag/drop mode) in my normal WinForm form.

As an example of what I am looking for:

-The .dll has a round circle that can be moved around the screen.
-The circle, when moving around the screen, is in the "drag mode".
-Once the circle is released it's in "drop mode".
-Once dropped, I should be able to get its information (x,y,other info).
I have yet to find an example like the above one. I figured it would be configured (the .dll) to have public functions that return a value in the dropped state and my winform defining that .dll as a deleage in some type like so:

Code:
imports theDll.dll
    
    Private Function testingDropped()
       Dim testingDLL As New theDll.dll

       AddHandler testingDLL.DragDrop, AddressOf testingDLL_Drop
    End Function

    Private Function testingDLL_Drop()
       Msgbox("Yay it works!")
    End Function
And the DLL code would look something like so:

Code:
Private Sub aCircle_DragDrop(sender As Object, e As DragEventArgs) Handles aCircle.DragDrop
       Return "blah blah blah"
    End Sub
And this is where I am having an issue with and wondering how to go about getting the returned value *(blah blah blah in the example above)* within the Winforms code.

Or would it be more along the lines of this:

Code:
Public Declare Function testingDLL Lib "c:\Directory\test.dll" (ByVal BufferSize As String) As String
       Dim testingDLL As New theDll.dll

       AddHandler testingDLL.DragDrop, AddressOf testingDLL_Drop
    End Function

    Private Function (testingDLL_Drop)
       Dim theReturn as String = ""
    
       theReturn = getVersionID(returnedValue)
       messagebox.show(theReturn)
    End Function
So needless to say, I'm not sure what I need to call in order to do what I need to do.
The "DLL info" is not just getting information on the dll itself (version, save date, etc).. its the embedded information that i place inside its dragDrop function that returns data once dropped.

Name:  flow4DLL.jpg
Views: 359
Size:  83.8 KB

Any help would be great!