I have a set of libraries that do processing output to Console.Out, and
Console.Error.
How do I direct that output to a Textbox on a Windows form in CSharp?
Thanks in advance!
- Nevyn 2 2628
For this you can route the In, Out, and Error objects used by the
console to your own objects. To do this simply use the Console.SetIn,
Console.SetOut, and Console.SetErro r equal to your object. SetIn will
accept a text reader while SetOut and SetError take text writers. Once
you've captured the output you can do what you'd like with it. Hope that
helps.
Have A Better One!
John M Deal, MCP
Necessity Software
Nevyn Twyll wrote: I have a set of libraries that do processing output to Console.Out, and Console.Error.
How do I direct that output to a Textbox on a Windows form in CSharp?
Thanks in advance!
- Nevyn
Just a note. The std output can and will stall your process if the std out
fills the stdout stream - which is not a lot of output (maybe a screen
full). So you may need a seperate thread to read process.stdout into your
own output stream until process done.
--
William Stacey, MVP http://mvp.support.microsoft.com
"Nevyn Twyll" <as****@hotmail .com> wrote in message
news:e7******** ******@TK2MSFTN GP11.phx.gbl... I have a set of libraries that do processing output to Console.Out, and Console.Error.
How do I direct that output to a Textbox on a Windows form in CSharp?
Thanks in advance!
- Nevyn
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jon Davis |
last post by:
Does anyone know where I can get my hands on a textbox console, like the
Immediate textbox in Visual Studio (any), in which I can map I/O streams
such that a class library built for a console app (re System.Console) can
interact with the user in the textbox?
Thanks,
Jon
|
by: Mullin Yu |
last post by:
But, I want is that I can have a Main app that will start a new process or
kill one particular or all process. The process will open a console exe.
But, I don't want the user to close the console windows by themselves, and
force them to use the Main app.
If I use Windows Services, I'm not sure can I create one dynamically, and
then kill easily. But, if using console application, my following coding is
working now.
using System;
|
by: Peteroid |
last post by:
I'm doing a managed C++ application. Is there a way to re-direct 'cout' to
output destinations other than the 'black console' that comes up?
Specifically, re-direction to a text file?
Thanks in advance! : )
|
by: Alison |
last post by:
Hi, Al
I am trying to design a user interface which provides both menus and toolbars for some users to click on whatever they want to do, at the same time, I would like to have a console window available in the same form for users to enter commands and display outputs if some prefer to use character based user interface. I would like to implement the user interface in vb .net. Now I have menus and toolbars ready, but do not now how to get a...
|
by: ano |
last post by:
I have a console application and a lot of Console.WriteLine().
Now I want to convert it to Windows Form Application.
Is it possible to getting all of the console messages to Form.Textbox
without changing every Console.WriteLine()?
Thank you in advance.
ano
| |
by: alex |
last post by:
Hi,
I have several classes, which i use in my windows application.
The classes uses console.writeline to print status information.
Now i have a log-textbox in my windows application and i want
that the console text appears in this textbox automatically when
the other classes writes to console.
Has anybody has a idea or a solution? (with a short code snippet,
because im not a c# professional)
Tank You
|
by: Ken Williams |
last post by:
In general the program is GUI based.
However sometimes I would like to wirte some text lines to Console as if it is
a Console program.
When I write a System.ConsoleWriteLine() statement this is accepted without error (during build and
runtime). Unfortunately no Cosole pops up at runtime and showing the text.
I assume I have to enable the Console resp. make it visible and let it popup when necessary.
|
by: =?Utf-8?B?RG91Z0U=?= |
last post by:
Some people tryed to help in my previous post. But I don't quite have it.
What I want to do is send stdout to something on a form textbox, panel,
listbox -- something. I want to write to a form the same way you would
write to a console using console.write(), except I want to send that output
to something on a form. Is this possible?
|
by: aaronkmar |
last post by:
Hi Bytes,
Hope your day is going well and thank god it's Friday!
I've got an IE only error kicking my butt.
The java below is responsible for table row highlighting and a tool tip for one of the cells. Neither work in IE, but FF is fine.
$(document).ready(function() {
$('.Login .Textbox').focus(function(){
|
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...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
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...
|
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...
|
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...
|
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();...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |