Click here to Skip to main content
15,911,142 members

Comments by user322012 (Top 8 by date)

user322012 19-Feb-13 4:33am View    
I tried for this but it is not working for .doc file(for converting binary to .doc file)
user322012 2-Feb-13 2:35am View    
In my app i have .bmp file ,i want that these .bmp file should only open with paint..
user322012 27-Jan-13 12:36pm View    
i read it but still can't access key to write it..
user322012 25-Jan-13 12:08pm View    
i am searching here but couldn't find any useful articles if you know any
give me links....
user322012 25-Jan-13 0:08am View    
My code is:
Dim f As New RegistryPermission( _
RegistryPermissionAccess.Read, _
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice\0")

f.AddPathList( _
RegistryPermissionAccess.Write Or RegistryPermissionAccess.Read, _
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice\0")

My.Computer.Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice\0", "Progid", "Applications\notepad.exe")

This code creates a new key named "0" and writes value as "Applications\notepad.exe", but it doesnot change the default application set for any .bmp file to open(in my case its Ms Paint).

What i want is to change the default application to open a .bmp file through my code. if the default application is MS Paint, then I want it to change to Notepad, but through code only.