Ola,

1) I'm dragging a file (.txt) into a rtb which works fine, but how do I get the filename? (messagebox whatever)
2) How do I restrict files to drop? (like a .exe)

vb.net Code:
  1. If e.Data.GetDataPresent(DataFormats.FileDrop) Then
  2. Dim Files() As String
  3. Files = e.Data.GetData(DataFormats.FileDrop)
  4. Dim sReader As New StreamReader(Files(0))

Thanks in advance.