System.Data.DataColumn' does not contain a definition for 'Windows'

  • Thread starter Thread starter mfunkmann
  • Start date Start date
M

mfunkmann

Hi there!

I have a problem here: I am using System.Data.Column and the Designer
wrote follwing Code for me:

this.System = new System.Data.DataColumn();

So far great, but furthermore I was setting properties with the Design
it generated follwing Code:


this.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.FixedSingle;

Of course this was throwing an error message during the compilation:

Error 2 'System.Data.DataColumn' does not contain a definition for
'Windows'
C:\c#\Form1.Designer.cs 388 47

How I can access the other System Variable?

Regards

Matthias
 
ahh.. avoid names like "System" that will collide with namespaces. You
can fix it by ensuring you talk about this.System (for the property)
and global::System (for the namespace) - but of course the designer
may not spit that out, especially if the column was created last.

How about "SystemColumn" as a name?

Marc
 
Hi,

Hi there!

I have a problem here: I am using System.Data.Column and the Designer
wrote follwing Code for me:

this.System = new System.Data.DataColumn();

So far great, but furthermore I was setting properties with the Design
it generated follwing Code:


this.FormBorderStyle =
System.Windows.Forms.FormBorderStyle.FixedSingle;

Of course this was throwing an error message during the compilation:

Error 2 'System.Data.DataColumn' does not contain a definition for
'Windows'
C:\c#\Form1.Designer.cs 388 47

How I can access the other System Variable?


Honestly I think a VERY BAD IDEA to name a variable System you will have a
lot of problems , that even as they can be solvable individually, you will
lost a lot of time on that.

just rename the variable and move on
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top