how can run a application when a file click such as pdf files that run acrobat reader ?
-
hi . i create an application that in save operation , save with *.ddi extension. when a file with this extension (*.ddi) click in windows , want to run my application and show it. such as *.pdf files that when a user click it Acrobat reader run and show it. tanks.
-
hi . i create an application that in save operation , save with *.ddi extension. when a file with this extension (*.ddi) click in windows , want to run my application and show it. such as *.pdf files that when a user click it Acrobat reader run and show it. tanks.
Have a look at "Registering the extension" part of this article: SlideShowBuilder[^]
#region signature my articles #endregion
-
hi . i create an application that in save operation , save with *.ddi extension. when a file with this extension (*.ddi) click in windows , want to run my application and show it. such as *.pdf files that when a user click it Acrobat reader run and show it. tanks.
-
hi . i create an application that in save operation , save with *.ddi extension. when a file with this extension (*.ddi) click in windows , want to run my application and show it. such as *.pdf files that when a user click it Acrobat reader run and show it. tanks.
You'll want to change the
Main()
method of Program.cs toMain(string[] args)
, and pass them along to your main Form constructor. And of course your main Form will need another constructor that accepts a string array. In that constructor you can look at the string array for file names, and do with them as you please. To register the file association, you can do that manually, or if you have an install project you can set up file associations there too.
Try code model generation tools at BoneSoft.com.