Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drop File on Icon

Status
Not open for further replies.

sunaj

Technical User
Feb 13, 2001
1,474
DK
Hi,

How do I pick up the filename of a file that is dragged and dropped on my program's file icon?

Thx in advance

Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
One solution:
Code:
    Private Sub frmJPreview_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim FN As String = Microsoft.VisualBasic.Command()
        If FN <> String.Empty Then
                 'code here
        End If
    End Sub

if you've got a more 'pure' vb.net solution, I'm still interested...

Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top