download a file to project resources
i use Visua开发者_开发百科l Basic 2008
.
hello is it possible to download a file directly to project resources, or to import file to resources on running vb 2008 application.
for example
i have : www.example.com/file.ext and i want to download it, but not toC:\
or C:\
drives, but to My.Resources.file
... is it possible?
thank you
This isn’t possible. Resources in your program are fixed: once your program is running, it cannot modify its resources.
Apart from that you can use the WebClient.DownloadData
method to download data into a variable without saving it to disc.
精彩评论