Page 1 of 1

Open a file with my app (VB.NET)

Posted: Fri Feb 20, 2004 5:17 am
by conthox
Hello

I wonder how to do this:

When I dbl click at a file in Windows Explorer, say test.txt, how do I send the file to my application? I want my application to open the file and load its content in a RichtextBox.

How is the file info sent to the program, and how do I catch it in the code?

Thanx

Posted: Fri Feb 20, 2004 5:26 am
by Straterra
The good thing with .Net is that you have MSDN. Hit F1 for all of your help. Also, if you have a pirated version and no MSDN, go to http://msdn.microsoft.com

Posted: Fri Feb 20, 2004 6:15 am
by conthox
Ok,.. I'll check the MSDN and help files once more.. I couldn't find it last time, but I'll try again.

//edit

I found it in another forum.