Morten,
Thank you for your help, it solved my problem.
"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:opsf7gqvpaklbvpo@pbn_computer...
HI xzzy,
WebClient is a class. The using statements lists namespaces so you have
to stop at the last namespace.
using System.Net;
...
WebClient wc = new WebClient();
or
System.Net.WebClient wc = new System.Web.WebClient();
without the 'using'.
Well, there is a third and fourth way.
using (System.Net.WebClient wc = new System.Net.WebClient())
{
// code
}
using System.Net; // the namespace so we can write less in the code
using (WebClient wc = new WebClient()) // this using controls scope
{
// code
}
--
Happy Coding!
Morten Wennevik [C# MVP]