Results 1 to 8 of 8

Thread: [RESOLVED] Drag Drop Get Filename & Restrict Files

Threaded View

  1. #2

    Thread Starter
    PowerPoster Radjesh Klauke's Avatar
    Join Date
    Dec 2005
    Location
    Sexbierum (Netherlands)
    Posts
    2,244

    Re: Drag Drop Get Filename & Restrict Files

    I've found the answer to my 1st question, now only to restrict certain files.

    for the people who want to know how:

    Code:
    Imports System.IO
    
    If e.Data.GetDataPresent(DataFormats.FileDrop) Then
    Dim Files() As String
    Files = e.Data.GetData(DataFormats.FileDrop)
    Dim sReader As New StreamReader(Files(0))
    
    Dim file_name as String = Path.Getfilename(Files(0))
    msgbox(file_name)
    Last edited by Radjesh Klauke; Jan 28th, 2011 at 06:27 AM.


    If you found my post helpful, please rate it.

    Codebank Submission: FireFox Browser (Gecko) in VB.NET, Load files, (sub)folders treeview with Windows icons

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width