GP32 Vb.net Opening Document


Pikachu47

Still Fresh
Joined
Jul 27, 2003
Messages
19
Location
Bolton, UK
Website
www.owen-griffiths.co.uk
Hi

I have made my own word processor in VB.NET. You can save the document files as .OZZ files and i have associated this with the application i made.

Does anyone know how to make double clicking on the document file run the app and open the document?

At the moment double clicking on a .OZZ file will just run the app and not open the document.

I want the document that caused that the application to run to be opened.

I've run out of ideas of how i could do it.

Help MEEEE!!!
 
Well, as nobody answers you, I'll try to help you. I don't have the slightest clue about VB.net, and I don't even remember how VB4 worked ;)

What you need to do is to check the parameter that is passed to your application. I really don't know how this works in vb.net. There should be a function that returns the arguments given along with your executable (like, "editor.exe myfile.txt"), You'll need to pass myfile.txt to your loading function then.
You should check your online-help or docs or whatever there is for vb.net (msdn?) for terms like "command line argument" or "parameter" or something alike. That's all i can do for you.
HTH.
 
Back
Top