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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dropping a file to start an application 1

Status
Not open for further replies.

JLizOB

Programmer
Dec 5, 2007
45
CA
I am trying to make it so that when a user drops a file onto my exe icon I can grab the location of the file and begin processing. How would I go about doing this? Is there an event that is triggered when a file is dropped on the exe itself? thanks!
 
I got a static void Main() method in my Program.cs file, but that is it. I'm not sure how to pull any arguments from that?
 
I added the string[] args to the Main, I can't seem to figure out what method is getting called now when the program opens up when a file is placed on it?
 
I got it working now, Thanks so much for your help JunkMonkey!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top