passing parameter to DownloadStringCompletedEventHandler in C#
i am working on application in WP7 , i would like to pass a list box as parameter to client_DownloadStringCompleted method.
My code looks like below ,
WebClient clien开发者_运维问答t = new WebClient();
client.DownloadStringCompleted += new DownloadStringCompletedEventHandler(client_DownloadStringCompleted);
Just add this line to your code:
client.DownloadStringAsync(yourUri, yourListBox);
精彩评论