Results 1 to 6 of 6

Thread: Webbrowser control - opening URL shortcuts

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2005
    Posts
    38

    Webbrowser control - opening URL shortcuts

    Hi,

    I am using Webbrowser control to make a sort of custom web browser. I can browse any URLs with the Navigate method of the Webbrowser control. But when I use this method to open a saved URL shortcut, it doesn't open properly - graphics are not loaded. I saw that Webbrowser is opening not the URL contained in the URL shortcut but some other file in the Temporary Internet Files directory. I deleted temporary internet files, cleared history etc but still it seems the webbrowser generates the temporary file from the shortcut.

    How can I make sure that the Navigate method opens the acutal URL contained in the shortcut ?

    I hope what I ask is clear enough.

    mecracked

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Webbrowser control - opening URL shortcuts

    You will have to parse the file for the appropriate URL inside.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2005
    Posts
    38

    Re: Webbrowser control - opening URL shortcuts

    How do I parse the file ? Sorry if its a dumb question.

    Quote Originally Posted by Dave Sell
    You will have to parse the file for the appropriate URL inside.

  4. #4
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Webbrowser control - opening URL shortcuts

    post the file. i will try to explain.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  5. #5

    Thread Starter
    Member
    Join Date
    Mar 2005
    Posts
    38

    Re: Webbrowser control - opening URL shortcuts

    Guess what - I couldn't attach becuase of extension. You could give example from any URL shortcut file that you create. Lets say ineternet shortcut for CNN.com

    In this case graphics was loaded (maybe because I had visited the site a few minutes before) but lot of script errors were shown.

  6. #6

    Thread Starter
    Member
    Join Date
    Mar 2005
    Posts
    38

    Re: Webbrowser control - opening URL shortcuts

    Hello Dave,

    I thought you were going to show me how to parse an Internet shortcut file.

    TIA

    mecracked

    Quote Originally Posted by Dave Sell
    post the file. i will try to explain.

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