Click here to Skip to main content
13,446,578 members (38,801 online)
Rate this:
Please Sign up or sign in to vote.
See more:
hello everyone
i am developing an application in 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
ryanb31 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 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

Rate this: bad
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.
Marcus Kramer 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04-2016 | 2.8.180314.2 | Last Updated 1 Feb 2013
Copyright © CodeProject, 1999-2018
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