Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello everyone
i am developing an application in vb.net vs2010 windows 7 in that i want that .bmp file should only open with Ms-paint only ,if user has set other default type i want to change that..

thanks in advance
Posted
Comments
ZurdoDev 1-Feb-13 10:56am    
Do you want your app to open it in paint or do you want to change the file association on the system to use paint?
fjdiewornncalwe 1-Feb-13 11:13am    
Bad idea to override a user's personal settings for their machine. I would highly suggest your rethink this idea.
user322012 2-Feb-13 2:35am    
In my app i have .bmp file ,i want that these .bmp file should only open with paint..

1 solution

You have to change file association. You can use this tool for example: System File Association[^]
But be aware that user can override this association anytime.
 
Share this answer
 
Comments
fjdiewornncalwe 1-Feb-13 11:14am    
+5 as this is a good answer to the question, but I know that I hate it when an application plays with file associations that aren't specific to that applications own documents.
Zoltán Zörgő 1-Feb-13 13:09pm    
Thank you and I agree with your remark.

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