Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
1.00/5 (4 votes)
See more:
Hi...
I know it possible to create C# compiler.
How my project work?
after compile is success the output print to command line.
But really i need the output print to textBox.
Please suggest me Thank you.

What I have tried:

I need the output print to textBox.
Posted

I highly doubt you are building a C# compiler. What I think you are doing is compiling your application from the command line using csc.exe, which is perfectly fine.

So you want to direct the output to a textbox? The answer is simple. Create a GUI that can invoice the command line compiler and then redirect the output to any UI element you wish, textbox, label, etc.

[EDIT]
You can review this article and it will help you get started.
Launching a process and displaying its standard output[^]
 
Share this answer
 
v2
Comments
terzasek 9-Feb-16 13:50pm    
Yes. I want to direct the output to a textbox.
Thank for your suggestion. and how to write the code to redirect the output to a textbox?
Can you guide me some idea please.
AnvilRanger 9-Feb-16 14:02pm    
Where exactly are you stuck? Do you not know how to create a Win Form app? Do you know how to invoke a process from a GUI? This is not a code to order service. What you are asking is a fairly simple task, but you have not shown work or even an attempt.
terzasek 10-Feb-16 9:31am    
Sorry, I'm not very good in English.
I know how to create a Win Form app and now my app can compile code.cs to code.exe
But i don't know how to get the output from code.exe(Command Line) to textBox.
I don't know how to invoke a process from a GUI , cloud you please send me some example.
I know this is not a code to order service. Sorry.
AnvilRanger 10-Feb-16 12:24pm    
See updated solution.
terzasek 10-Feb-16 14:37pm    
Thank you very much. "Launching a process and displaying its standard output"
It does working.
 
Share this answer
 
Comments
terzasek 9-Feb-16 13:57pm    
I already do same your suggestion. But it does't work for me.
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900