Click here to Skip to main content
15,886,724 members
Home / Discussions / C#
   

C#

 
QuestionDatagridview with tabcontrol in windows application Pin
Rahulmishra0117-Dec-14 19:07
Rahulmishra0117-Dec-14 19:07 
AnswerRe: Datagridview with tabcontrol in windows application Pin
syed shanu7-Dec-14 21:07
mvasyed shanu7-Dec-14 21:07 
Questionnavigation page control, library extention for c# winforms Pin
KasGuest7-Dec-14 18:00
KasGuest7-Dec-14 18:00 
QuestionRe: navigation page control, library extention for c# winforms Pin
Richard MacCutchan7-Dec-14 22:56
mveRichard MacCutchan7-Dec-14 22:56 
AnswerRe: navigation page control, library extention for c# winforms Pin
KasGuest8-Dec-14 22:53
KasGuest8-Dec-14 22:53 
GeneralRe: navigation page control, library extention for c# winforms Pin
Richard MacCutchan8-Dec-14 23:01
mveRichard MacCutchan8-Dec-14 23:01 
Question[SOLVED] Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
Ray415287-Dec-14 13:32
Ray415287-Dec-14 13:32 
AnswerRe: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
BillWoodruff7-Dec-14 14:12
professionalBillWoodruff7-Dec-14 14:12 
I have never used EchoPrint, or launched a Console Application using Process.Start from within a WinForms project, so what follows may be irrelevant, or useless, but, given the fact you've done thorough searching, and haven't come up with anything, and on the odd chance it may be helpful, I'll put it out here.

If I find out this is not relevant, I'll remove this message, and my "feelings" will not be "hurt" Smile | :)

Is it possible that if you launch a Console from a C# project using the 'AllocConsole API, you can then, somehow, get that Console running codegen.exe ... so you would, then, be able to interact ?

Your C# project is WinForms, or WPF, or C++ ?

The 'AllocConsole API works for me (only tested in .NET 4.5) to enable two-way interaction between a Win Form and a Console it launches:
C#
[System.Runtime.InteropServices.DllImport("kernel32.dll")]
private static extern bool AllocConsole(); 

private void button1_Click(object sender, EventArgs e)
{
    AllocConsole();

    MessageBox.Show(ConsoleWriteAndReadLine(new string[]{"arg 1","arg 2","arg 3"}));
}

private string ConsoleWriteAndReadLine(string[] values)
{
    Console.WriteLine("Command line = {0}", Environment.CommandLine);

    for (int i = 0; i < values.Length; i++)
    {
        Console.WriteLine("argument{0} = {1}", i + 1, values[i]);
    }

    Console.Write("? ");

    return Console.ReadLine(); 
}
Perhaps the techniques shown in this CodeProject article would be helpful: [^] ?
«OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. »  Alan Kay's clarification on what he meant by the term "Object" in "Object-Oriented Programming."

GeneralRe: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
Ray415287-Dec-14 15:36
Ray415287-Dec-14 15:36 
GeneralRe: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
Ray415287-Dec-14 15:38
Ray415287-Dec-14 15:38 
GeneralRe: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
BillWoodruff7-Dec-14 18:21
professionalBillWoodruff7-Dec-14 18:21 
AnswerRe: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
Harsh Athalye7-Dec-14 17:13
Harsh Athalye7-Dec-14 17:13 
General[SOLVED]Re: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
Ray415288-Dec-14 5:20
Ray415288-Dec-14 5:20 
GeneralRe: [SOLVED]Re: Reading Process.StandardOutput from Echoprint Codegen.exe always returns empty string Pin
Harsh Athalye8-Dec-14 17:59
Harsh Athalye8-Dec-14 17:59 
Questioni want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Keshav Shivhare7-Dec-14 6:21
Keshav Shivhare7-Dec-14 6:21 
SuggestionRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Richard MacCutchan7-Dec-14 6:42
mveRichard MacCutchan7-Dec-14 6:42 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Keshav Shivhare7-Dec-14 6:53
Keshav Shivhare7-Dec-14 6:53 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Richard MacCutchan7-Dec-14 7:00
mveRichard MacCutchan7-Dec-14 7:00 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Keshav Shivhare7-Dec-14 7:47
Keshav Shivhare7-Dec-14 7:47 
AnswerRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
syed shanu7-Dec-14 13:08
mvasyed shanu7-Dec-14 13:08 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Keshav Shivhare8-Dec-14 3:12
Keshav Shivhare8-Dec-14 3:12 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
syed shanu8-Dec-14 13:11
mvasyed shanu8-Dec-14 13:11 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
syed shanu8-Dec-14 13:16
mvasyed shanu8-Dec-14 13:16 
GeneralRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
Richard Deeming9-Dec-14 1:51
mveRichard Deeming9-Dec-14 1:51 
AnswerRe: i want to show the selected cheakbok values from one grid view to another grid view in windows form. Pin
aartimishra9-Dec-14 23:30
aartimishra9-Dec-14 23:30 

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.