Hi,
Through registry entry you can do this.
Here is the
link to change
Open With option.
Given example is for
.pdc extension. you can do the same for
.jpeg file extension.
And hope you know how to modify registry value through C# code.
hope this may help you.
Thanks
-Amit.