Jump to content

VBScript.NET Help! Using Open With, in a hurry!


RobberBaron
 Share

Recommended Posts

I have made an application with Visual Studio with two assosiated file types: note and .bookThe problem is, when I open one of these files, it runs my application but shows up blank. In the file 'ApplicationEvents.vb' I have a function called Action(FileName), which opens the file from FileName into the application. The problem is, how do I run this function when a file is opened with my application? Please help, I'm in a hurry to get this finished!

Link to comment
Share on other sites

  • 6 months later...
I have made an application with Visual Studio with two assosiated file types: note and .bookThe problem is, when I open one of these files, it runs my application but shows up blank. In the file 'ApplicationEvents.vb' I have a function called Action(FileName), which opens the file from FileName into the application. The problem is, how do I run this function when a file is opened with my application? Please help, I'm in a hurry to get this finished!
Solved: user Environment.GetArguments() or something like it to get the file name that the application is opened with.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...