Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

C# Winform errors

Posted on 2014-04-08
2
301 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

860 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