473,756 Members | 2,061 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 2736
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
8879
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
5198
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
4568
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
4939
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
14388
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
1106
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
9325
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9152
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
9716
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9571
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
8569
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
7116
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
6410
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
4996
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3185
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.