Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Problem using showUI in My.computer.Network.DownloadFile

Posted on 2008-10-01
3
Medium Priority
?
861 Views
Last Modified: 2012-05-05
I wish to us My.computer.Network.DownloadFile to download files from the internet because it has a built in UI that shows progress and also has a [Cancel] button.

I am not looking for an alternative method to download as I have otherways already.  I'm simply looking to see if the following attached code can be made to work... Am I doing something wrong?

It flashes the UI and saves a zero byte file.
My.computer.Network.DownloadFile("http://youtube.com/get_video?video_id=VXd-Xhg_gx8&l=87&t=OEgsToPDskL9-WT-JifHhdMToQRMAZmD","C:\Users\Owner\Documents\FLV_Downloads\dog.flv","","",true,180000,true)

Open in new window

0
Comment
Question by:straubtm
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
SameerJagdale earned 1000 total points
ID: 22621775
hoping you are not on a wireless network. check this out:
http://en.allexperts.com/q/VB-NET-3306/Computer-Network-DownloadFile-hangs.htm
try making the showui as false, if it works. try lessening the timeout as well. :-)
0
 
LVL 1

Author Comment

by:straubtm
ID: 22629851
Hi Sameer,
None of the suggestions seems to make a difference.  I suspect it is simply a problem with the way the file is served up in this case..

I am goiing to resort to generating my own UI.
Tim
0
 
LVL 13

Expert Comment

by:SameerJagdale
ID: 22631289
Hi Tim,
I think youtube might have implemented some sort of security so that its not easy to download the file.
Thanks for the points.
-Sameer
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Screencast - Getting to Know the Pipeline
Suggested Courses

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question