double-click and launch application

  • Thread starter Thread starter Peter Ignarson
  • Start date Start date
P

Peter Ignarson

Hi there - I am writing a paint program (I am following a learning tutorial,
there is no point to writing a paint program) and I want to extend it so
that I can copy the contents of my drawing and paste it into Microsoft Word.
Then I want to double click on the diagram in Microsoft Word and have my
paint program loaded with the drawing ready for editing.

For this seemingly basic functionality, is there an example out there on how
to do this double-clicking and application launch functionality in Microsoft
Word, or Excel, or any other application.

Thank you
Pete
 
Sorry for this repost. I have spent two whole days looking for an
example and can't find one. Please direct me in the right place,
please.
Thank you
Pete
 
Peter,

This is more a Windows OS question than it is a VB.NET question.

What you have to do is register a file extension. For instance if you named
your files something.slm you would need to register the slm extension and in
this registration you would tell Windows the name of the program you want to
launch. Then when you dbl-click the file in word, word will make a call to
the OS to launch the editor for the file.

-Sam Matzen
 
Back
Top