Solved

C# Winform errors

Posted on 2014-04-08
2
299 Views
Last Modified: 2014-04-22
An object reference is required for the nonstatic field, method, or  property 'Script.CustShipForm'


An object reference is required for the nonstatic field, method, or property 'Script.csm'

Please advise a fix to the above errors with 'Script'.
0
Comment
Question by:thuhue
2 Comments
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 250 total points
ID: 39987375
Please show the line that is in error.

More than likely, you are trying to call a method using the class name instead of an instance variable name.
0
 
LVL 29

Accepted Solution

by:
anarki_jimbel earned 250 total points
ID: 39990031
Yes, it would be interesting to see code.

Usually one can see this error when calling a non static property or method  from a static method.
In this case it's necessary to either make the called property/method static, or make a calling method non-static and create an instance of a class.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now