Click here to Skip to main content
11,709,844 members (72,968 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VB.NET Registry.
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 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
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 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 524
1 OriginalGriff 250
2 Peter Leow 229
3 Maciej Los 180
4 Mika Wendelius 125
0 OriginalGriff 9,428
1 Sergey Alexandrovich Kryukov 9,037
2 CPallini 5,189
3 Maciej Los 4,991
4 Mika Wendelius 3,856

Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 1 Feb 2013
Copyright © CodeProject, 1999-2015
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