System.Net.WebClient client = new System.Net.WebClient(); string downloadedString = client.DownloadString("http://xxxx");
WebClient client = new WebClient(); client.OpenReadCompleted += new OpenReadCompletedEventHandler(readComplete); ... private void readComplete(object sender, OpenReadCompletedEventArgs e) { byte[] buffer = new byte[e.Result.Length]; //crashes here with exception }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)