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? 3 19285
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?
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?
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? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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....
|
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...
|
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...
|
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...
|
by: puzzlecracker |
last post by:
is it even possible or/and there is a better alternative to accept
input in a nonblocking manner?
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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...
|
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...
|
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,...
|
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...
|
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...
| |