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 PostThere is no event that I am aware of that triggers when you open a file from within your program. You don't need an event triggered because you are already executing code, starting with the method you called to open the file. As for "open with", you can set your …
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 5,242 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Sahil89 0 Newbie Poster
Reverend Jim 5,242 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.