CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: error:

  1. #1
    Join Date
    Apr 2008


    Hi Guys,

    My programming knowledge is not the best but i have come across a problem using backgroundworker this is the error i am seeing:

    Error 1 'WindowsFormsApplication18.MBFilerecordord[] WindowsFormsApplication18.Form1.backgroundWorker1_DoWork(object, System.ComponentModel.DoWorkEventArgs)' has the wrong return type F:\FYP Program\24.08.2010\WindowsFormsApplication18\Form1.Designer.cs 42 46 WindowsFormsApplication18

    line of code the error is highlighting:

    this.backgroundWorker1.DoWork += new system.ComponentModel.DoWorkEventHandler(this.backgroundWorker1_DoWork);

    releated method:

    public MBFilerecordord[] backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
    blah blah blah blah

    please could you help me figure out how to fix this im banging my head aginstr the wall done a fare bit of reading and still getting no where

    thank you all in avance for any help

  2. #2
    Join Date
    Oct 2006

    Re: error:

    Tried F1 help?
    Copied from the help page
    public delegate void DoWorkEventHandler (
      Object sender,
      DoWorkEventArgs e
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here

    Get your free MS compiler here

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.