469,962 Members | 2,926 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,962 developers. It's quick & easy.

double-click and launch application

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


Nov 20 '05 #1
2 1397
"Peter Ignarson" <pi*******@hotmail.com> wrote in message 04 July 2004

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

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

Nov 20 '05 #2
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
"Peter" <pi*******@hotmail.com> wrote in message
news:a6*************************@posting.google.co m...
"Peter Ignarson" <pi*******@hotmail.com> wrote in message 04 July 2004

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

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

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

31 posts views Thread by Bjørn Augestad | last post: by
10 posts views Thread by Robert Palma | last post: by
67 posts views Thread by lcw1964 | last post: by
11 posts views Thread by Ole Nielsby | last post: by
2 posts views Thread by dj10fld | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.