473,406 Members | 2,352 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,406 software developers and data experts.

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

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

Jan 3 '07 #1
2 2277
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
Jan 3 '07 #2
Hi,

<mf*******@yahoo.comwrote in message
news:11*********************@s34g2000cwa.googlegro ups.com...
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
--
Ignacio Machin
machin AT laceupsolutions com
Jan 3 '07 #3

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

Similar topics

9
by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my...
0
by: elcc1958 | last post by:
I need to support a VB6 application that will be receiving disconnected ADODB.Recordset from out DotNet solution. Our dotnet solution deals with System.Data.DataTable. I need to populate a...
4
by: Bilo | last post by:
I have a Windows Forms Class MainGUI I have declared MainGUI maingui; public System.ComponentModel.Container components = new Container(); in the Class I call another class MediaDriver with...
1
by: Luis Esteban Valencia | last post by:
Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source...
20
by: djc | last post by:
I get this *intermittently* on a utility I am working on. I don't know whats going on but here are a few points about it: - using VS 2005, running on xp sp2 - program uses multiple threadpool...
3
by: Carlos | last post by:
Hi all, I have 2 asp .net 2.0 projects currently being developed. One is in VB .Net and the other in C#. In the VB .Net project I can cross-reference a datatable object using the...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
1
by: mfunkmann | last post by:
Hi, I recently got an error and I don't know how to fix it: Error 1 'System.Data.DataColumn' does not contain a definition for 'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO I...
2
by: =?Utf-8?B?VGFtbXkgTmVqYWRpYW4=?= | last post by:
Hi, I am using Visual Studio C# windows. Every time I want to use some of the methods in System.Windows.Form such as Clear(), it gives me error message and saying "System.Windows.Forms.TextBox does...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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,...
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.