Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET Registry.
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 1-Feb-13 4:06am
Comments
ryanb31 at 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?
Marcus Kramer at 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 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Marcus Kramer at 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ő at 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)



Advertise | Privacy | Mobile
Web02 | 2.8.140926.1 | Last Updated 1 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100