Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27386

VS 2010 Help About WebBrowser1 control

$
0
0
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!!

Viewing all articles
Browse latest Browse all 27386


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>