2
Answers

Process.Start cannot open .PNG file

TAN WhoAMI

TAN WhoAMI

11y
3k
1
if the file format is .JPG, there is no problem of opening a .jpg file.
however, if it is .png file, it gives the exception, how do we overcome this?

error as below:
System.ComponentModel.Win32Exception was unhandled
  Message=No application is associated with the specified file for this operation
  Source=System
  ErrorCode=-2147467259
  NativeErrorCode=1155
  StackTrace:
       at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
       at System.Diagnostics.Process.Start()

thanks


Attachment: sourcecode.zip

Answers (2)