Tobit dragdrop vb.net

  • Hallo,


    ich bin gerade dabei eine Drag&Drop Funktion in eine Vb.net form einzubauen.
    Ich kann bereits in einem Event abfangen, ob es sich bei der gedroppten Mail um ein Tobit-Mailitem handelt.
    If e.Data.GetDataPresent("#TobitMsgData") Then
    TobitEmailDragDrop()
    Else
    e.Effect = DragDropEffects.None
    End If


    Jetzt wird es schwierig :) Um herauszufinden, welche Mail gedroppt wurde, verwende ich diese Sub()


    Private Sub TobitEmailDragDrop()
    Dim mTobit As DvApi32.DavidAPI
    mTobit = New DvApi32.DavidAPIClass()
    Dim mArchive As DvApi32.Archive
    Dim strID As String = Nothing
    Dim Count As Integer = Nothing
    Dim oEntryDisplay As DvApi32.IEntryDisplay
    Dim oEntryDisplayColl As DvApi32.IEntryDisplayCollection
    Dim mTobitAccount As DvApi32.Account = ""
    mArchive = mTobitAccount.GetSpecialArchive(DvApi32.DvArchiveTypes.DvArchivePersonalIn)
    Try
    oEntryDisplayColl = mArchive.GetEntryDisplay("default", "Subject|Stoptime")
    Catch ex As Exception
    End Try
    End Sub


    oEntryDisplayColl = mArchive.GetEntryDisplay("default", "Subject|Stoptime")


    Diese Zeile gibt mir alle Emails zurück, die sich in dem Archive befinden. Gibt es weitere Filterfunktionen, um herauszufinden, welche Mail gedroppt wurde?

    mArchive.GetEntryDisplay("marked", "Subject|Stoptime")

    mArchive.GetEntryDisplay("selected", "Subject|Stoptime") usw.


    funktioniert nicht...


    Gibt es Jemanden, der mir dabei helfen kann?


    Gruß
    Dennis

  • Hi everyone,


    I hope it is OK to write in English.


    The thread is old, but I have the same problem. I am trying to achieve the same result. So an mail will be dragged from David client and dropped into .NET application. Is it possible to determine which mail is selected (dragged) in currently active David client? Is there any better way to implement drag and drop functionality?


    Thanks.

Jetzt mitmachen!

Du hast noch kein Benutzerkonto auf unserer Seite? Registriere dich kostenlos und nimm an unserer Community teil!