ProgrammingVISUAL STUDIO C# HELPPosted:

Status: Offline
Joined: Jan 18, 20117 Year Member
Posts: 328
Reputation Power: 16
I'm currently learning to program in C# using visual studio.

I'm trying to program a windows form application, however I've ran into an error in which I cannot resolve.

In the application I'm trying to add a 'load' method which reads from a text file and then adds the strings to the listbox.

This is the error I'm getting atm.
"there is no argument given that corresponds to the required formal parameter "

If anyone can provide me with any help I would really appreciate it.

I can attach the project through email if needed.

[ Register or Signin to view external links. ]
#2. Posted:
  • 2 Million
Status: Offline
Joined: Oct 09, 20107 Year Member
Posts: 2,320
Reputation Power: 104
your constructor for employees doesn't match the parameters you are giving it when instantiating your new class instances. You'll have to either add a constructor to the class that takes the parameter list you are giving it or send it the correct parameters. Right now you are just passing in a single parameter.
Users browsing this topic: None
Jump to: