开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜