.net - How launch batch photos/images in gallery view in C# -


for project have folders of images. example folder might imagesofdogs, , images inside sequentially named (1.png, 2.png, etc.). have button, , when press button want open of images in folder @ once, in 1 window. make own window, rather use default windows program user can edit photos. this following (just imagine black thing cute dog pic): enter image description here

let's path folder string titled spathtofolderofdogs. on button click, want method this:

private void opencoolpicsofdogs() {     process.start(spathtofolderofdogs); } 

except open enclosed files in image viewing application, preferably whichever user default. have tried:

process.start("pictureviewer", spathtofolderofdogs); 

...which opens pictureviewer , not open photos in pictureviewer,

process.start(spathtoparticularimage1); process.start(spathtoparticularimage2); etc etc 

...which opens each in new window, , possibly creatively/desperately:

string[] arrayofallmypathstoparticularimagesinthefolder; (put strings in array) process.start(arrayofallmypathstoparticularimagesinthefolder); 

which crashed. know opening folders in applications through process.start should possible because done in docs here.* there way images?

*relevant code link:

       // start internet explorer. defaults home page.          process.start("iexplore.exe");          // display contents of favorites folder in browser.          process.start(myfavoritespath); 

thanks!

it turns out question duplicate. however, not deleting it, the powers suggest best keep duplicates up "signpost" informing future searchers true path lies.

here answer question (or more specifically, half dozen equally functional answers question).

tl;dr: solution using @bruceatk in above link.


Comments