Subject: Re: Process.Start(Windows Picture and Fax Viewer)?
Date: Mon, 9 Feb 2004 18:06:03 -0600
Lines: 75
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.0
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Message-ID: <
[email protected]>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: 0-1pool36-200.nas14.milwaukee1.wi.us.da.qwest.net 63.156.36.200
cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP09.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:180015
X-Tomcat-NG: microsoft.public.dotnet.languages.vb
Peter,
Thanks, the "long" Process.Start statement is what I need. I want to launch
Windows Picture and Fax Viewer, no matter what the user has set up in the
file associations between, say .bmp files and his preferred .bmp image
viewer.
During the testing, I came across a very noticeable difference in the time
it took to launch Windows Picture and Fax Viewer and paint the image. Here
are my results, and they are consistent. All assume that WPFV is associated
with .jpg files. Note that scenario 2 of 3 takes 4-5 seconds, while
supplying less or more parameters takes 0-1 seconds. My immediate need is
solved by scenario 3 of 3, so it's only an "academic" question on
performance now. Try the three scenarios on you PC, see if you get the same
results.
strPath = "C:\Bluehills.jpg"
'Process.Start(strPath) '0-1 second to load