Click here to Skip to main content
15,905,566 members
Home / Discussions / C#
   

C#

 
AnswerRe: Command Line Process Execution Pin
Luc Pattyn13-Jun-07 7:56
sitebuilderLuc Pattyn13-Jun-07 7:56 
GeneralRe: Command Line Process Execution Pin
Justin Perez13-Jun-07 8:16
Justin Perez13-Jun-07 8:16 
GeneralRe: Command Line Process Execution Pin
Luc Pattyn13-Jun-07 9:21
sitebuilderLuc Pattyn13-Jun-07 9:21 
QuestionProblem using ProgressBar or other informative control... Pin
Khoramdin13-Jun-07 7:34
Khoramdin13-Jun-07 7:34 
AnswerRe: Problem using ProgressBar or other informative control... Pin
Giorgi Dalakishvili13-Jun-07 7:46
mentorGiorgi Dalakishvili13-Jun-07 7:46 
AnswerRe: Problem using ProgressBar or other informative control... Pin
Ed.Poore13-Jun-07 7:52
Ed.Poore13-Jun-07 7:52 
AnswerRe: Problem using ProgressBar or other informative control... Pin
Justin Perez13-Jun-07 7:52
Justin Perez13-Jun-07 7:52 
QuestionCombination console/form app Pin
eosisms13-Jun-07 7:29
eosisms13-Jun-07 7:29 
I have an existing console application that I want to extend with an optional GUI front end. I would like for this to all exist in a single executable rather than writing two separate versions (a console app and a windows app). If the user runs the executable normally, I want the application to run in a command window. If the user runs the executable with a specific parameter, say:
program.exe -visual
I want the program to run at the command line, but open a windows form where it spits out various output (different output than that going to stdout, so I'm not looking for a redirect solution).

My first instinct was to have the console application start up the GUI and then update a textbox via a delegate function. Of course, for the GUI to update itself, and for the console app to continue its work, the GUI would need to be in its own thread.

What is the best way of going about this? Should the console app spawn a thread which then calls Application.Run(...)? What then is the best way for the console app to send data over for the GUI to display?

I'm open to all suggestions. Thanks.
AnswerRe: Combination console/form app Pin
Ed.Poore13-Jun-07 7:53
Ed.Poore13-Jun-07 7:53 
AnswerRe: Combination console/form app Pin
MidwestLimey13-Jun-07 13:27
professionalMidwestLimey13-Jun-07 13:27 
AnswerRe: Combination console/form app Pin
eosisms14-Jun-07 8:56
eosisms14-Jun-07 8:56 
Questionhow can ... Pin
B.A13-Jun-07 6:51
B.A13-Jun-07 6:51 
AnswerRe: how can ... Pin
Ed.Poore13-Jun-07 7:54
Ed.Poore13-Jun-07 7:54 
Questioncontroling status of a call made by a hanset using tapi 3 Pin
georgishelpmegodtoo13-Jun-07 6:10
georgishelpmegodtoo13-Jun-07 6:10 
QuestionNeed a DataGridView With Footer. Pin
hdv21213-Jun-07 5:39
hdv21213-Jun-07 5:39 
AnswerRe: Need a DataGridView With Footer. Pin
Not Active13-Jun-07 6:08
mentorNot Active13-Jun-07 6:08 
QuestionMoving a control in runtime with c#, without using c++ api Pin
sinosoidal13-Jun-07 4:15
sinosoidal13-Jun-07 4:15 
AnswerRe: Moving a control in runtime with c#, without using c++ api [modified] Pin
Martin#13-Jun-07 4:30
Martin#13-Jun-07 4:30 
GeneralRe: Moving a control in runtime with c#, without using c++ api Pin
sinosoidal13-Jun-07 4:51
sinosoidal13-Jun-07 4:51 
AnswerRe: Moving a control in runtime with c#, without using c++ api Pin
Guffa13-Jun-07 7:21
Guffa13-Jun-07 7:21 
QuestionMODI - Microsoft office document imaging 11.0? Pin
$uresh $hanmugam13-Jun-07 3:59
$uresh $hanmugam13-Jun-07 3:59 
Question.net 2.0 - loop through the second collection Pin
arkiboys13-Jun-07 3:28
arkiboys13-Jun-07 3:28 
AnswerRe: .net 2.0 - loop through the second collection Pin
Russell Jones13-Jun-07 3:33
Russell Jones13-Jun-07 3:33 
GeneralRe: .net 2.0 - loop through the second collection Pin
arkiboys13-Jun-07 3:36
arkiboys13-Jun-07 3:36 
Questionproblem in writing a file Pin
saqib8213-Jun-07 3:20
saqib8213-Jun-07 3:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.