473,385 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Reference to a non-shared member requires an object reference

Trying to compile this code:
<System.ComponentModel.Browsable(false), _
System.ComponentModel.DesignerSerializationVisibil ityAttribute(System.Compon
entModel.DesignerSerializationVisibility.Content)> _
Public ReadOnly Property vItemLocDiscreps As vItemLocDiscrepsDataTable
Get
Return Me.tablevItemLocDiscreps
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 19284
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***********************@redpointsystems.com> a écrit dans le
message de news:23**********************************@microsof t.com...
Trying to compile this code:
<System.ComponentModel.Browsable(false), _
System.ComponentModel.DesignerSerializationVisibil ityAttribute(System.Compon entModel.DesignerSerializationVisibility.Content)> _
Public ReadOnly Property vItemLocDiscreps As vItemLocDiscrepsDataTable Get
Return Me.tablevItemLocDiscreps
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.ComponentModel.DesignerSerializationVisibil ityAttribute(System.ComponentModel.DesignerSeriali zationVisibility.Content)

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***********************@redpointsystems.com> a écrit dans le
message de news:23**********************************@microsof t.com...
Trying to compile this code:
<System.ComponentModel.Browsable(false), _

System.ComponentModel.DesignerSerializationVisibil ityAttribute(System.Compon
entModel.DesignerSerializationVisibility.Content)> _
Public ReadOnly Property vItemLocDiscreps As

vItemLocDiscrepsDataTable
Get
Return Me.tablevItemLocDiscreps
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.Componentmodel namespace.
"formula13x" wrote:
The error is on
System.ComponentModel.DesignerSerializationVisibil ityAttribute(System.ComponentModel.DesignerSeriali zationVisibility.Content)

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***********************@redpointsystems.com> a écrit dans le
message de news:23**********************************@microsof t.com...
Trying to compile this code:
<System.ComponentModel.Browsable(false), _

System.ComponentModel.DesignerSerializationVisibil ityAttribute(System.Compon
entModel.DesignerSerializationVisibility.Content)> _
Public ReadOnly Property vItemLocDiscreps As

vItemLocDiscrepsDataTable
Get
Return Me.tablevItemLocDiscreps
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
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...
3
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...
1
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...
4
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...
0
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...
0
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....
13
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...
0
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...
399
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...
12
by: puzzlecracker | last post by:
is it even possible or/and there is a better alternative to accept input in a nonblocking manner?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.