473,396 Members | 1,843 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,396 software developers and data experts.

Can't get Console.Write to work in my console app

I am using VS 2005 and just built a simple application that opens an xml
file and I want to put the table names on the console.

But when I try to use Console.Write (or Console.Readline), I get an error:

Error 1 The name 'Console' does not exist in the current context

How can that be - this is a Console application?

Thanks,

Tom
Dec 20 '07 #1
2 1682
tshad wrote:
I am using VS 2005 and just built a simple application that opens an xml
file and I want to put the table names on the console.

But when I try to use Console.Write (or Console.Readline), I get an error:

Error 1 The name 'Console' does not exist in the current context

How can that be - this is a Console application?
Do you have a:

using System;

?

Arne
Dec 20 '07 #2
"Arne Vajhøj" <ar**@vajhoej.dkwrote in message
news:47***********************@news.sunsite.dk...
tshad wrote:
>I am using VS 2005 and just built a simple application that opens an xml
file and I want to put the table names on the console.

But when I try to use Console.Write (or Console.Readline), I get an
error:

Error 1 The name 'Console' does not exist in the current context

How can that be - this is a Console application?

Do you have a:

using System;
That was it.

I somehow deleted it when I added a couple of other namespaces.

Thanks,

Tom
>
?

Arne

Dec 20 '07 #3

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

Similar topics

1
by: Tony Boloney | last post by:
Hi all, I'm trying to use the method described in the article Adding Console I/O to a Win32 GUI App http://dslweb.nwnexus.com/~ast/dload/guicon.htm to output info to a separate console...
1
by: Ollie | last post by:
I have an aspx page that contains a web control that contains 2 text boxes and button to submit the text. I am trying to submit text and collect the response from a console application, but it is...
2
by: PHead | last post by:
Is there any way to stop the console from scrolling? What I mean isnt to not scroll at all, its that I want to get rid of the buffer. When a new line is created, I want row 0 to go away...
2
by: djc | last post by:
out of all the overloads that pop up via intellisense for console.writeline() the following one confuses me: Console.WriteLine (string format, params object arg) 1) whats the deal with...
7
by: mabra | last post by:
Hi All ! Problem:Reading/duplicating "Console.In" fails for unknown reason. I wrote a little console helper tool, named TEE, which just duplicates the StdIn to the StdOut AND an additional...
3
by: julianmoors | last post by:
Hey, Currently I'm writing a VB.NET/1.1 app and I need to mask the input for the password field. Does anyone know how to do this in VB? I've seen a C# example, but wouldn't know how to convert...
6
by: vijai.kalyan | last post by:
Hello, I wrote a trivial program to set the console title in a console application. Here is the code:- namespace myns { class SetTitle { static void Main ( string args )
5
by: Amzin | last post by:
Hello. I'm writing roguelike using VB.NET. It has very slow console output. Is there any methods to make it work faster? For example, Sub PlaceAt(ByVal s As String, ByVal x As Integer, ByVal...
22
by: raylopez99 | last post by:
Here is a classic example of why C# is like beating your head against the wall. I can tell you where the error is in the below code--it's the "NumberStyles" property of DecimalParse (which...
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:
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...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
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
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.