RobberBaron Posted March 25, 2010 Share Posted March 25, 2010 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 More sharing options...
RobberBaron Posted October 23, 2010 Author Share Posted October 23, 2010 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now