You are viewing our Forum Archives. To view or take place in current topics click here.
VISUAL STUDIO C# HELP
Posted:

VISUAL STUDIO C# HELPPosted:

Rookie_MoDDeR
  • Ladder Climber
Status: Offline
Joined: Jan 18, 201113Year Member
Posts: 328
Reputation Power: 16
Status: Offline
Joined: Jan 18, 201113Year 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:
Xaldin
  • TTG Addict
Status: Offline
Joined: Oct 09, 201014Year Member
Posts: 2,358
Reputation Power: 106
Status: Offline
Joined: Oct 09, 201014Year Member
Posts: 2,358
Reputation Power: 106
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.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.