//Create a new system processSystem.Diagnostics.Process Process =NewSystem.Diagnostics.Process (); //set the file name, here is the true path of the picture + file nameProcess. Startinfo.filename =FileName; //This is a critical part. Sets the process run parameters, at which time the picture is displayed for the maximized window. Process. Startinfo.arguments ="rundll32.exe C://windows//system32//shimgvw.dll,imageview_fullscreen"; //This entry is not available if the shell is used to execute the program, because the system defaults to true, but if the setting must be trueProcess. Startinfo.useshellexecute =true; //Here you can change the display style of the form that the process is open to without setting theProcess. Startinfo.windowstyle =System.Diagnostics.ProcessWindowStyle.Hidden; Process. Start (); Process. Close ();
"Go" C # call Windows Picture and Fax Viewer to open a picture