Using a context menu to send a file to another application in C# -


i'm creating application hold multiple images, i've decided on image context menu appear when right clicking , have option send image editing application such photoshop, gimp, paint etc...

i know how create context menu, unsure on code use in order send image application itself.

if want open file in default application answered. if want same explorer doing on "edit" context menu item, add these 2 lines in "original, complicated answer" link above:

if (psi.verbs.contains("edit", stringcomparer.ordinalignorecase))     psi.verb = "edit"; 

you should check existence of verb want in psi.verbs per msdn. if there's no "edit" verb code calls default app.. default.

if want give user list of image editing apps user have installed have have hardcoded database of such apps installation guids, check if installed, find out installed (maybe not in default place), , make list of them, calling each file command line argument. it's complicated give code that.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -