Open image in IE

herverob

New member
Local time
Today, 12:04
Joined
Dec 31, 2007
Messages
8
Hi,
I am actually doing a videotheque and so far everything is fine.
The only detail I would like to do is, a click on the cover that appear on a Form open the picture (jpg or bmp) with IE.

right now, the code I have is 'Application.FollowHyperlink MovieLogo' but it opens the jpg / bmp in PAINT.

Thanks in advanced

Herve
 
Hi,
I am actually doing a videotheque and so far everything is fine.
The only detail I would like to do is, a click on the cover that appear on a Form open the picture (jpg or bmp) with IE.

right now, the code I have is 'Application.FollowHyperlink MovieLogo' but it opens the jpg / bmp in PAINT.

Thanks in advanced

Herve

I would use Shell()
 
You need to nominate the application you want to use when shelling

Code:
Dim ShellApplication As String


ShellApplication = "msPaint.exe"              [COLOR="DarkGreen"]'Shell file[/COLOR]AppPath = CurrentProject.Path & "\Images\"    [COLOR="darkgreen"]'Where the images are located[/COLOR]

Dim RetVal
    RetVal = Shell(ShellApplication & " " & Chr(34) & sFile, vbNormalFocus)
 

Users who are viewing this thread

Back
Top Bottom