Hi Dean,
Thanks for posting in the community.
First of all, I would like to confirm my understanding of your issue.
From your description, I understand that you wants to you want to call
Windows Picture and Fax Viewer to display some bmp files. Also when you
call the explorer to show the pictures, and the second time you run the
explorer process will be somewhat slow.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.
I have tested the code on my machine. (WinXP Pro + SP1, VS.NET 2003)
Also I think if you wants to use the Windows Picture and Fax Viewer, you
may try the shimgvw.dll, here is some code for your reference.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
'Process.Start("c:\windows\explorer.exe", "C:\Bluehills.jpg")
Process.Start("c:\windows\system32\rundll32.exe",
"C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscr een c:\Bluehills.jpg")
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
'Process.Start("c:\windows\explorer.exe", "C:\drums.jpg")
Process.Start("c:\windows\system32\rundll32.exe",
"C:\WINDOWS\System32\shimgvw.dll,ImageView_Fullscr een c:\drums.jpg")
End Sub
Please Apply My Suggestion Above And Let Me Know If It Helps Resolve Your
Problem.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.