Open file in application externally

E

ElmoWatson

I'm using VB.net 2005 - -
I have 2 questions, actually - - -
1. I remember, in VB6, there was a way, to set command line parameters or
something, so that, if you use the 'Open With' option, or dragged a file
onto the MDI interface, it would open inside the interface.

2. How can I make it so that, if the application is already open, trying to
do the above will not open a new instance, but open it with the currently
open instance?

Does anyone know how this all is done in VS.Net 2005?
 
P

Patrick Steele

I'm using VB.net 2005 - -
I have 2 questions, actually - - -
1. I remember, in VB6, there was a way, to set command line parameters or
something, so that, if you use the 'Open With' option, or dragged a file
onto the MDI interface, it would open inside the interface.

2. How can I make it so that, if the application is already open, trying to
do the above will not open a new instance, but open it with the currently
open instance?

Does anyone know how this all is done in VS.Net 2005?

1) Drag and drop:
http://www.ondotnet.com/pub/a/dotnet/2002/11/11/dragdrop.htm

2) Single instance app:
http://www.yoda.arachsys.com/csharp/faq/#one.application.instance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top