TAN WhoAMI

TAN WhoAMI

  • NA
  • 291
  • 0

Process.Start cannot open .PNG file

Jan 3 2013 3:16 AM
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)