C# CF: How to open specific file extension with my program
Posted
by nuttynibbles
on Stack Overflow
See other posts from Stack Overflow
or by nuttynibbles
Published on 2010-03-12T22:23:27Z
Indexed on
2010/03/12
22:27 UTC
Read the original article
Hit count: 326
c#
|compact-framework
Hi, Im developing a mobile application in dot net Compact framework. I managed to edit the registry HKEY_CLASSES_ROOT so that a click on file with .xyz extension will open my application. basically, i need to do some operation on this file when it's clicked.
however, i realise that if i do that the first time, it reaches program.cs at static void Main
. but when the program is running and i click on the file with .xyz extension again, it doesnt loads the program static void Main
. i tried setting breakpoints at the form that is currently running but still nothing.
so where does it go to? how can i detect file .xyz is clicked and do something??
© Stack Overflow or respective owner