Results 1 to 4 of 4

Thread: Help About WebBrowser1 control

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2010
    Posts
    11

    Help About WebBrowser1 control

    I have a Problem with webbrowser1 in vb.net 2010. i want to download a picture or text file but in my case i want to download it to my specific folder not in Temporary Internet Files. how to do it using vb.net?

    i try it but not found
    Code:
    Dim iwanttomove As String
    Dim MoveTo As String
    
    iwanttomove = Environment.SpecialFolder.InternetCache & "\Text.txt"
    MoveTo = "C:\Text.txt"
    
    If System.IO.File.Exists( iwanttomove ) = True Then
    
    System.IO.File.Move( iwanttomove, MoveTo )
    MsgBox("File Moved")
    
    Else
    
    MsgBox("File Not Found")
    
    End If
    But when i go to Temporary Internet Files the Text.txt is here but when i try to move said File not found.

    Please help!!

    thanks in advance!!

  2. #2
    Fanatic Member BenJones's Avatar
    Join Date
    Mar 2010
    Location
    Wales UK
    Posts
    814

    Re: Help About WebBrowser1 control

    Not to sure is there not something in the webbrowser an event that says when the file is compleate, maybe you can put your code in that.

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2010
    Posts
    11

    Re: Help About WebBrowser1 control

    Solved, i found the solution.. thanks!!

  4. #4
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Posts
    12,376

    Re: Help About WebBrowser1 control

    Quote Originally Posted by waldopulanco View Post
    Solved, i found the solution.. thanks!!
    Why not post the solution for the other people that search for a solution with your particular problem. It would help out, not only the vbforums community, but also the world. I don't know about you, but the way I got to VBForums was doing a search on a specific problem on google. That lead me here.
    "Code is like humor. When you have to explain it, it is bad." - Cory House
    VbLessons | HtmlLessons | CssLessons | Code Tags | Sword of Fury - Jameram

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