Results 1 to 4 of 4

Thread: Open Pictures with IE

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2001
    Location
    Hyd - INDIA
    Posts
    57

    Open Pictures with IE

    Hi, instead of opening the image in a image control i would like to open it in IE. I do not wish to use a webbrowser control in my application. All i want to do is open this picture in IE from my application. Any help in this regard is highly appreciated.

    image1.Picture = LoadPicture("C:\Temp.gif")

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Open Pictures with IE

    Use ShellExecute() and pass the the address of the image.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2001
    Location
    Hyd - INDIA
    Posts
    57

    Re: Open Pictures with IE

    can you pls help me with the code as i am unable to understand from the function (shellexecute) as to how the program will open the image in Internet explorer.

  4. #4
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Open Pictures with IE

    ShellExecute opens a file in the default handler. If you really must open it in IE then you can use Shell() (which is built into VB) and pass "iexplore " follwed by the address of the file.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width