System.Diagnostics.Process.Start.....

  • Thread starter Thread starter Robin Tucker
  • Start date Start date
R

Robin Tucker

I'm having problems with System.Diag here. When I double click the item (on
my desktop), it launches in Windows Fax and Picture Viewer, but when I try
to launch it from my VB program, I get the following exception:

"A first chance exception of type 'System.ComponentModel.Win32Exception'
occurred in system.dll

Additional information: No application is associated with the specified file
for this operation"


I'm writing this:

System.Diagnostics.Process.Start("C:\Documents and
Settings\R.Tucker\Desktop\camera.jpg")

Some items do launch ok, but for some reason .JPG files don't. Does
explorer look for this kind of thing explicitly and display it with the fax
and picture viewer if a default viewer is not registered?

Thanks for any answers.
 
Open up an explorer window,

Go to Tools / Folder Options

Click on the FileTypes tab, and see if JPG is associated with anything, and
then check the parameters associated with it.

-CJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top