outlook contact data format

R

Rob Agar

hi all

Anyone know how to extract info from a drag+dropped contact item?

This is my current drop event:
Private Sub listPeople_DragDrop(ByVal sender As Object, ByVal e As
System.Windows.Forms.DragEventArgs) Handles listPeople.DragDrop

Try

Dim data As Object

data = e.Data.GetData(System.Windows.Forms.DataFormats.Text)

' this will output the name in last name, first name format and whatever's
displayed in the contact email field (not necessarily the actual address)

Debug.WriteLine(data)

Catch ex As Exception

Debug.WriteLine(ex)

End Try

End Sub

It works, but the text data extracted is pretty minimal - I want to get at
the proper contact data. Basically, I need to know the data format type to
pass to GetData.... can anyone help?

ta,

Rob
 
Top