473,769 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ReadLine needs twice Return Hit after Console.TreatCo ntrolCAsInput = true;

Hi,

i am not a friend of crossposting, but this is a exception here.
Either i dont get it or whatever, can someone tell me, why
the Console.ReadLin e() needs twice Enter hit, after the
Console.TreatCo ntrolCAsInput = true; has been set and
how can i avoid this with Console.TreatCo ntrolCAsInput = true;
leaving the TreatControlCAs Input as "true",..

Why does this break its behaviour,...?

Regards

Kerem
Dec 9 '07 #1
5 2738
On Sun, 09 Dec 2007 11:48:34 -0800, Kerem Gümrükcü <ka*******@hotm ail.com>
wrote:
Hi,

i am not a friend of crossposting, but this is a exception here.
As I pointed out in the framework newsgroup, you didn't cross-post, you
multi-posted (which is worse).

Besides, Marc already answered this same question. What about his reply
wasn't useful to you? Why didn't you just ask for elaboration in the same
thread?
Dec 10 '07 #3
_Pete_,

I see you're still _arrogant_ as ever. Now you're a newsgroup watchdog as
well. How do _you_ find the time? Silly little fool.

"Peter Duniho" <Np*********@nn owslpianmk.comw rote in message
news:op******** *******@petes-computer.local. ..
On Sun, 09 Dec 2007 11:48:34 -0800, Kerem Gümrükcü <ka*******@hotm ail.com>
wrote:
>Hi,

i am not a friend of crossposting, but this is a exception here.

As I pointed out in the framework newsgroup, you didn't cross-post, you
multi-posted (which is worse).

Besides, Marc already answered this same question. What about his reply
wasn't useful to you? Why didn't you just ask for elaboration in the same
thread?
Dec 10 '07 #4
Joey Joe Joe wrote:
"Peter Duniho" <Np*********@nn owslpianmk.comw rote in message
news:op******** *******@petes-computer.local. ..
>On Sun, 09 Dec 2007 11:48:34 -0800, Kerem Gümrükcü
<ka*******@hot mail.comwrote:
>>i am not a friend of crossposting, but this is a exception here.

As I pointed out in the framework newsgroup, you didn't cross-post,
you multi-posted (which is worse).

Besides, Marc already answered this same question. What about his
reply wasn't useful to you? Why didn't you just ask for elaboration
in the same thread?
I see you're still _arrogant_ as ever. Now you're a newsgroup watchdog
as well. How do _you_ find the time? Silly little fool.
Well - multi posting is generally considered bad, because it
fragments the discussion (which is usually undesirable except
in rare X vs Y cases).

And it is both efficient and polite to continue the existing
thread instead of create a new one to get any outstanding issues
sorted out.

So what are you complaining about ??

Arne
Dec 10 '07 #5
hihi, this thread is really interesting.

I hope this thread will end with my post.

Just enjoy technology, my dear brothers.
Dec 11 '07 #6

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

Similar topics

1
8880
by: JC | last post by:
I'm trying to create a GUI wrapper for dumpbin, and so I'm using the Process class to run the command-line application. The problem is that if I use Readline() to get the output from the commandline app, it will hang when it comes to the command-prompt (there's no return to send it to readline). Here's the code: public bool RunCommands(string cmds, ArrayList files) {
4
3580
by: alberto | last post by:
In this code for a console application: int n; n = Console.Read(); Console.WriteLine(n); Console.ReadLine();
1
5200
by: Kevin | last post by:
In a newsgroup thread from Jan 8, 2003 between Barry Holsinger and the VBDotNet Team, please review this excerpt: "You understood my problem completely. Your sample code provides a really elegant way to inject CrLf into the input stream, which effectively unblocks the ReadLine method. Last night, I had finally got the WriteConsoleInput
8
4569
by: nadeem_far | last post by:
Hello All, These days I am working on a console application that will register for certain events and do some processing based on the event notification. Now, all the objects are being created in main(). Once the main exists the program ends. Here is what I want to do.
1
4940
by: Joachim | last post by:
Is there a way to set a timeout for the Console.ReadLine method?
6
12850
by: Ole | last post by:
Hi, I'm running a command line process from my C# application trying to catch the output messages from the process into a textbox in my windows form. But the text doesn't update (the ReadLine doesn't return) until the process exits??? Any help is highly appreciated! The code is like this: Process myProcess = new Process(); myProcess.StartInfo.FileName = Application.StartupPath + "\\myCmdLine.exe";
2
14393
by: SriBhargav | last post by:
Hi, I've a question on setting timeout on console.readline() I would like the user to input something through Console.readline() in 5 secs. If there is no input in that time, I would like to proceed further with the program logic. I had a difficulty in implementing this, as console.readline() indefinitely waits for the user input.
1
2340
by: Kerem Gümrükcü | last post by:
Hi All, i am too tired now to find this out by my own, but why does my while loop "while(readline==Console.ReadLine())" needs twice return hit to read the line, after setting "Console.TreatControlCAsInput = true". How can i make it work like it would be set to "false", so that i only must hit the return once to get the input,... TIA
0
1108
by: Kerem Gümrükcü | last post by:
Hi, i am not a friend of crossposting, but this is a exception here. Either i dont get it or whatever, can someone tell me, why the Console.ReadLine() needs twice Enter hit, after the Console.TreatControlCAsInput = true; has been set and how can i avoid this with Console.TreatControlCAsInput = true; leaving the TreatControlCAsInput as "true",.. Why does this break its behaviour,...?
0
9422
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10206
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9851
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8863
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7403
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6662
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3949
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.