Drag and Drop

  • Thread starter Thread starter pmclinn
  • Start date Start date
P

pmclinn

What is the argument structure for allowing a .exe file to except a
drop file.

Example.

I take a picture (jpg) and drag it over a exe. The exe launches and
then shows the picture.

-Peter
 
Hi Peter

Look up command line arguments

Public Sub Main(args() As String)

If args.Length <> 1 Then

' Just load the application normally

Else

' Do what you want with the file
' Example: Start program
' PictureBox1.Image...

End If

End Sub

The above is just an example for you to get the idea.

You will need to change your application to start up from Sub Main too

I hope this helps

Crouchie1998
BA (HONS) MCP MCSE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top