KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Visual Studio 2008, C# 3.0. I have a method below which calls an event handler. I would like to pass the two arguments received by the method to the event handler. I would like to do something like this: wc.DownloadDataCompleted += wc.DownloadedDataCompleted(strtitle, placeid); Is this even possible, if yes, how would I go about doing it ? Code Snippet: public void downloadphoto(string struri,string strtitle,string placeid) { using (WebClient wc = new WebClient()) { wc.DownloadDataCompleted += wc_DownloadDataCompleted; wc.DownloadDataAsync(new Uri(struri)); } }
Tags (comma-separated)
Save Edits
Cancel