Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening data file automatically opens .NET application
Message
De
03/07/2007 14:48:49
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
03/07/2007 14:21:21
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
Divers
Thread ID:
01237568
Message ID:
01237589
Vues:
18
>>>I created an application that does file exports and imports. These files have a specific extension. I want to be able to click on one of these data files and have the application launch and automatically import it. Can somebody point me in the right direction?
>>
>>Hi Mike,
>>
>>We use the filesystemwatcher class to poll a directory, when a file is placed there by the user, it automatically runs the code to import.
>
>I'm sorry, I must have not described my question correctly. Reading it again, I could have really simplified it.
>
>What I want to do is create an application that has data files of a specific extension, and when I open the data files it launches the application and loads the data. For example, when I click on a .doc file it launches Word and loads the document. I know I can make files of that extension open with my application, but I don't know how to load the data.

You have to associate the program to handle that extension with the extension. Open any folder, go to tools/folder options/file types and register the action there. It should work. Thinking about it, you could probably write the registry keys yourself to register your file / type programatically.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform