What event trigers when we open file with our exe/program?
How to do coding for that?
Sahil89
0
Newbie Poster
Recommended Answers
Jump to PostProcess.Start("exeprocessname","filename")
eg.
Process.Start("Notepad.exe","C:\text.txt")
Jump to PostYou can get the command line arguments in the collection My.Application.CommandLineArgs
Because you are passing the filename as an argument to your program, you would process it (open the file) in your form load event handler.
All 6 Replies
poojavb
29
Junior Poster
Sahil89
0
Newbie Poster
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Sahil89
0
Newbie Poster
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Sahil89
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.