I set the textbox property allowdrop to true
then do it as normals(without checking the drag source)
Private Sub TextBox1_DragDrop(ByVal sender As Object, ByVal e As =
System.Windows.Forms.DragEventArgs) Handles TextBox1.DragDrop
TextBox1.Text =3D e.Data.GetData(DataFormats.UnicodeText, True)
End Sub
Private Sub TextBox1_DragEnter(ByVal sender As Object, ByVal e As =
System.Windows.Forms.DragEventArgs) Handles TextBox1.DragEnter
e.Effect =3D DragDropEffects.Copy
End Sub
If u want to determinate the data format, u can ise getformats method=20
Private Sub TextBox1_DragDrop(ByVal sender As Object, ByVal e As =
System.Windows.Forms.DragEventArgs) Handles TextBox1.DragDrop
'TextBox1.Text =3D e.Data.GetData(DataFormats.Text).ToString
Dim mytext As New System.Text.StringBuilder
Dim i As Integer
Dim data() As String
data =3D e.Data.GetFormats(True)
For i =3D 0 To UBound(data)
mytext.Append("Item " & i & ": " & Chr(9))
mytext.Append(data(i))
mytext.Append(Environment.NewLine)
Next
TextBox1.Text =3D mytext.ToString
End Sub
Hope it helps
[quoted text, click to view] "Mystery Man" <PromisedOyster@hotmail.com> wrote in message =
news:87c81238.0402290419.6abe4f0e@posting.google.com...
> Does anyone have code samples of how to drag and drop emails in
> Outlook onto a windows form???
>=20
> I see that there are a number of threads that raise this issue but