Rated
Read 31,354 times
Contents
Related Categories
File Assocation - Introduction
Introduction
In this article, we are going to discuss File Association and opening files
when they are clicked on in Explorer. For example, imagine you have a program
called TextMagic - an advanced text editor. You have your own file format, with
a tmg file extension. When your user clicks on a file in explorer with a tmg
extension you want your program to automatically run and then open that file.
How on earth do we get this to happen? Using File Association!
James first started writing tutorials on Visual Basic in 1999 whilst starting this website (then known as VB Web). Since then, the site has grown rapidly, and James has written numerous tutorials, articles and reviews on VB, PHP, ASP and C#. In October 2003, James formed the company Developer Fusion Ltd, which owns this website, and also offers various development services. In his spare time, he's a 3rd year undergraduate studying Computer Science in the UK. He's also a Visual Basic MVP.
Comments
-
Posted by DEVILSAN on 19 Sep 2006
Hi Can you please also tell how to do it in .Net using VB.Net or C# ... -
Posted by Matt2977 on 16 Aug 2005
This looks like it could be the answer to my problem, but in case i stuff it up somehow could you tell me how to reverse the changes that are made to the registry by this code please?
Thanks -
Posted by onggan on 09 Aug 2005
please help me..,
i have problem, i can't load file word (*.doc) from vb, can u tell me how to do it??
thx b4.
please send ur coding to niel_onggan@yahoo.com
That's your procedure that does whatever when its been given a filename (ie loading the file into a textbox or something) -
Posted by weirdo on 24 Apr 2003
The code is working fine, except for the OpenFile bit.
The comment says to call your openfile procedure.
What is the OpenFile command?
|