|
-
Mar 18th, 2013, 03:08 AM
#1
Thread Starter
New Member
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!!
-
Mar 18th, 2013, 04:40 AM
#2
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.
-
Mar 18th, 2013, 04:51 AM
#3
Thread Starter
New Member
Re: Help About WebBrowser1 control
Solved, i found the solution.. thanks!!
-
Mar 18th, 2013, 02:10 PM
#4
Re: Help About WebBrowser1 control
 Originally Posted by waldopulanco
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|