Click here to Skip to main content
15,911,789 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am new to c#,My doubt is,
I have created a new format called ".asd"
if i want it to be open by my application what to do currently i am using OpenDialogue and maunupulaing the content of the file and continues with the code.
The question is how do i open my file when i double click the file with ".asd" format like ".psd" opens Photoshop and views data in it.
Thanks in Advanced,
Mohammed Owais.
Posted
Updated 7-Mar-12 5:16am
v2
Comments
Herman<T>.Instance 7-Mar-12 9:26am    
this has nothing to with c# but with shortcuts in your OS

File extension associations are stored in the registry. Writing this information involves knowing a bit about how applications are created and maintained in the registry. Fortunately, there's a simple article here on Code Project that contains a project that simplifies the access to an almost insane degree. Link[^]
 
Share this answer
 
You need to create a file association. System File Association[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900