Visual STudio C#

MrMay
MrMay used Ask the Experts™
on
Hello,
I'm developing an application in visual studio 2010 in C#.
I'm getting a compile error. Something in regards to .... missing a assembly reference. Please see attached jpeg.
Can someone please explain to me what this means and how to fix it.
It worked before, but I must have pressed or deleted something and now I'm stuck.
post.JPG
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hello,
as you can see from your attached jpeg, on the right side there is "references", you should expand that one and add the correct reference: right click on it, select add reference and select from the existing list or browse for the correct file
Rikin ShahMicrosoft Dynamics CRM Consultant
Commented:
Hi,

You need to add PrintableListView Project reference to your project.

Follow these instructions:
1. Right click on References
2. Go to Projects tab
3. Select PrintableListView project
4. Compile and run.

Author

Commented:
Ok, I did as instructed and it made things even worse. Please see attached.
post1.JPG
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Microsoft Dynamics CRM Consultant
Commented:
Hi,

Is this ListView a custom class or it is a .net class? Do you have a reference for System.Web namespace?
Rikin ShahMicrosoft Dynamics CRM Consultant

Commented:
Hi,

Sorry my bad... You're working on Win Forms. So check if you have a namespace for System.Windows.Forms?
ǩa̹̼͍̓̂ͪͤͭ̓u͈̳̟͕̬ͩ͂̌͌̾̀ͪf̭̤͉̅̋͛͂̓͛̈m̩̘̱̃e͙̳͊̑̂ͦ̌ͯ̚d͋̋ͧ̑ͯ͛̉Glanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015

Commented:
You are missing a control that is named "ListView".

Author

Commented:
how to I make this control ListView.. example please... I'm really not sure what I deleted.
ǩa̹̼͍̓̂ͪͤͭ̓u͈̳̟͕̬ͩ͂̌͌̾̀ͪf̭̤͉̅̋͛͂̓͛̈m̩̘̱̃e͙̳͊̑̂ͦ̌ͯ̚d͋̋ͧ̑ͯ͛̉Glanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015
Commented:
Making assumptions based on the name, drag a ListView component from the Toolbox onto your form's surface within the designer. Then change the name of that new control to "ListView".
Rikin ShahMicrosoft Dynamics CRM Consultant

Commented:
Hi,

Can you check your recycle bin if there is any .cs file, restore it. Refresh visual studio project to have it back and check.

Author

Commented:
got it working... I had a backup of the whole project that I did a few days ago. Just using that code and added a bit of the code that I wrote yesterday.
all good now.
THANK YOU all for your suggestions.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial