How do i automatic load an image in my C# program with open with( from left click of the mouse).
I've developed a program with windows forms that open images and show them in a image box (because i hate the image viewer from windows 10, is too slow) so i decided to start this easy project. But after finished everything i've decided to improve my program a little. My idea is, if i click, lets take for example, on an excel file in pc, the excel program open and automaticly load that file that i clicked on, i dont need to click in file and after this click on menu, file, load and choose a file to load. I want to do exact the same, but with png and jpg files. I've tried to do the same, but my program don't automatic load the image file, because i don't know how to get a path from a random jpg that i click on to open. Somebody can help me, i'm new programming in C#.