I have problem in writing the code in windows form application my problem is
I need to write
private static void DownloadFiles(IEnumerable<string> filenames,
string uri, string localPath, string user, string password)
However, when I write it, I get the following error:
'WindowsFormsApplication10.Form1' does not contain a definition for 'Form1_Load' and no extension method 'Form1_Load' accepting a first argument of type 'WindowsFormsApplication10.Form1' could be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\WindowsFormsApplication10\WindowsFormsApplication10\Form1.Designer.cs
Please help me
Thanks in advance
This is normally because you have managed to get the IDE to generate a form load event handler (by double clicking on the form), and have deleted the method without deleting the designer generated code to link the method with the event.
If you go to
Form1.Designer.csyou should see a line that looks like this:Delete this line.