473,544 Members | 1,024 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Reference to a non-shared member requires an object reference

Trying to compile this code:
<System.Compone ntModel.Browsab le(false), _
System.Componen tModel.Designer SerializationVi sibilityAttribu te(System.Compo n
entModel.Design erSerialization Visibility.Cont ent)> _
Public ReadOnly Property vItemLocDiscrep s As vItemLocDiscrep sDataTable
Get
Return Me.tablevItemLo cDiscreps
End Get
End Property

Results in "Reference to a non-shared member requires an object reference."
I've googled the error, but can not find any reference to this error in this
context, i.e. in function attributes.
This is generated code, and I'd like to try to resolve the issue, before
resorting to removing all the "problem" lines.

Any thoughts on what could be causing this?
Sep 28 '05 #1
3 19293
In which class is this code ? Usually this is because you can't use Me
inside a shared member as you have no current instance...

--
Patrice

"formula13x " <Re************ ***********@red pointsystems.co m> a écrit dans le
message de news:23******** *************** ***********@mic rosoft.com...
Trying to compile this code:
<System.Compone ntModel.Browsab le(false), _
System.Componen tModel.Designer SerializationVi sibilityAttribu te(System.Compo n entModel.Design erSerialization Visibility.Cont ent)> _
Public ReadOnly Property vItemLocDiscrep s As vItemLocDiscrep sDataTable Get
Return Me.tablevItemLo cDiscreps
End Get
End Property

Results in "Reference to a non-shared member requires an object reference." I've googled the error, but can not find any reference to this error in this context, i.e. in function attributes.
This is generated code, and I'd like to try to resolve the issue, before
resorting to removing all the "problem" lines.

Any thoughts on what could be causing this?

Sep 28 '05 #2
The error is on
System.Componen tModel.Designer SerializationVi sibilityAttribu te(System.Compo nentModel.Desig nerSerializatio nVisibility.Con tent)

It doesn't appear to be because of the "me" reference, but a problem with
the attribute.

"Patrice" wrote:
In which class is this code ? Usually this is because you can't use Me
inside a shared member as you have no current instance...

--
Patrice

"formula13x " <Re************ ***********@red pointsystems.co m> a écrit dans le
message de news:23******** *************** ***********@mic rosoft.com...
Trying to compile this code:
<System.Compone ntModel.Browsab le(false), _

System.Componen tModel.Designer SerializationVi sibilityAttribu te(System.Compo n
entModel.Design erSerialization Visibility.Cont ent)> _
Public ReadOnly Property vItemLocDiscrep s As

vItemLocDiscrep sDataTable
Get
Return Me.tablevItemLo cDiscreps
End Get
End Property

Results in "Reference to a non-shared member requires an object

reference."
I've googled the error, but can not find any reference to this error in

this
context, i.e. in function attributes.
This is generated code, and I'd like to try to resolve the issue, before
resorting to removing all the "problem" lines.

Any thoughts on what could be causing this?


Sep 28 '05 #3
I
turns out there was a namspace conflict, I just needed to Import the
System.Componen tmodel namespace.
"formula13x " wrote:
The error is on
System.Componen tModel.Designer SerializationVi sibilityAttribu te(System.Compo nentModel.Desig nerSerializatio nVisibility.Con tent)

It doesn't appear to be because of the "me" reference, but a problem with
the attribute.

"Patrice" wrote:
In which class is this code ? Usually this is because you can't use Me
inside a shared member as you have no current instance...

--
Patrice

"formula13x " <Re************ ***********@red pointsystems.co m> a écrit dans le
message de news:23******** *************** ***********@mic rosoft.com...
Trying to compile this code:
<System.Compone ntModel.Browsab le(false), _

System.Componen tModel.Designer SerializationVi sibilityAttribu te(System.Compo n
entModel.Design erSerialization Visibility.Cont ent)> _
Public ReadOnly Property vItemLocDiscrep s As

vItemLocDiscrep sDataTable
Get
Return Me.tablevItemLo cDiscreps
End Get
End Property

Results in "Reference to a non-shared member requires an object

reference."
I've googled the error, but can not find any reference to this error in

this
context, i.e. in function attributes.
This is generated code, and I'd like to try to resolve the issue, before
resorting to removing all the "problem" lines.

Any thoughts on what could be causing this?


Sep 29 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
4400
by: lothar | last post by:
re: 4.2.1 Regular Expression Syntax http://docs.python.org/lib/re-syntax.html *?, +?, ?? Adding "?" after the qualifier makes it perform the match in non-greedy or minimal fashion; as few characters as possible will be matched. the regular expression module fails to perform non-greedy matches as described in the documentation: more than...
3
12196
by: Mario | last post by:
Hello, I couldn't find a solution to the following problem (tried google and dejanews), maybe I'm using the wrong keywords? Is there a way to open a file (a linux fifo pipe actually) in nonblocking mode in c++? I did something ugly like --- c/c++ mixture --- mkfifo( "testpipe", 777);
1
6887
by: Markus Ernst | last post by:
Hi I wrote a function that "normalizes" strings for use in URLs in a UTF-8 encoded content administration application. After having removed the accents from latin characters I try to remove all non-word characters from the string: // PCRE syntax: $string = preg_replace("/(+)/", "-", $string);
4
5286
by: bwmiller16 | last post by:
Guys - I'm doing a database consistency check for a client and I find that they're building unique indexes for performance/query reasons where they could be using non-unique indexes. Note that these columns in the unique indexes are truly unique and don't constitute a collision hazard of any kind. Now, I personally wouldn't use unique...
0
2043
by: Christopher Attard | last post by:
Hi, I need to create a dialog like the 'Add Counters' dialog box in perfmon. I'm using the System.Diagnostics namespace class in .NET and I've managed to do it. The problem arises when I'm using such dialog box on a non-English Windows OS (I'm currently testing on Spanish WinXP Professional). I'm noticing that on non-English Windows...
0
4466
by: Henry Wu | last post by:
Hi, I am aware that TransparencyKey only works with top-level forms or Non-MDI Child Forms, if one tries to set the opacity or transparencykey property to a MDI-Child form, it will have no effect. So, I tricked my Transparent Non-MDI Child form into my MDI-Container form via SetParent API as seen here in my VB.NET sample (...
13
2922
by: Academic | last post by:
I have a MDI form, sometimes child forms and sometimes forms that are neither If I close the app the child forms closing and closed event happens followed by the Mdi form receiving the events.. But the regular forms that are also open do not receive that event. This is true whether there are child forms open or not.
0
2322
by: amitvps | last post by:
Secure Socket Layer is very important and useful for any web application but it brings some problems too with itself. Handling navigation between secure and non-secure pages is one of the cumbersome jobs. When a non-secure page references a secure page with relative URL, the web server generates error until absolute URL with https prefix is...
399
12643
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post by:
PEP 1 specifies that PEP authors need to collect feedback from the community. As the author of PEP 3131, I'd like to encourage comments to the PEP included below, either here (comp.lang.python), or to python-3000@python.org In summary, this PEP proposes to allow non-ASCII letters as identifiers in Python. If the PEP is accepted, the...
12
29808
by: puzzlecracker | last post by:
is it even possible or/and there is a better alternative to accept input in a nonblocking manner?
0
7424
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7365
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7607
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7772
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7376
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
3415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3409
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1841
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
988
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.