viewing images in picture manager

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • najimou
    New Member
    • Feb 2007
    • 10

    viewing images in picture manager

    Hi everyone

    I have a form that displays images, what i want to do is that when the user double clicks on the picture displayed, it opens in MS picture manager

    I used the code:
    shell "ois.exe me![picturepath]"

    what happens here, picture manager flashes then disappears from the screen



    Any ideas

    Thanks in advance
  • ADezii
    Recognized Expert Expert
    • Apr 2006
    • 8834

    #2
    Originally posted by najimou
    Hi everyone

    I have a form that displays images, what i want to do is that when the user double clicks on the picture displayed, it opens in MS picture manager

    I used the code:
    shell "ois.exe me![picturepath]"

    what happens here, picture manager flashes then disappears from the screen



    Any ideas

    Thanks in advance
    This will work:
    Code:
    Dim retVal As Variant
    'You must provide the Absolute Path to ois.exe e.g.
    C:\Programs\Graphics\ois.exe. If the Path is C:\ois.exe, then:
    retVal = Shell("C:\ois.exe " & Chr$(34) & Me![PicturePath] & Chr$(34), vbMaximizedFocus)

    Comment

    • najimou
      New Member
      • Feb 2007
      • 10

      #3
      It worked perfectly, and by the way i didn't have to provide the full path of the application

      Thank you very much

      Comment

      • ADezii
        Recognized Expert Expert
        • Apr 2006
        • 8834

        #4
        Originally posted by najimou
        It worked perfectly, and by the way i didn't have to provide the full path of the application

        Thank you very much
        Glad to be of assistance.

        Comment

        • DenisStarbank
          New Member
          • Nov 2011
          • 1

          #5
          Appreciation 2011

          Its years later but your reply helped me just as much.
          Thanks.

          Comment

          Working...