Click here to Skip to main content
15,895,084 members
Home / Discussions / C#
   

C#

 
QuestionI need a file viewr please Pin
hom.rcp10-Oct-07 14:52
hom.rcp10-Oct-07 14:52 
AnswerRe: I need a file viewr please Pin
Christian Graus10-Oct-07 15:31
protectorChristian Graus10-Oct-07 15:31 
GeneralRe: I need a file viewr please Pin
PIEBALDconsult10-Oct-07 15:32
mvePIEBALDconsult10-Oct-07 15:32 
AnswerRe: I need a file viewr please Pin
Matthew Cuba10-Oct-07 15:39
Matthew Cuba10-Oct-07 15:39 
QuestionForm as Command Line Pin
SDEspiritu10-Oct-07 12:06
SDEspiritu10-Oct-07 12:06 
AnswerRe: Form as Command Line Pin
PIEBALDconsult10-Oct-07 13:13
mvePIEBALDconsult10-Oct-07 13:13 
GeneralRe: Form as Command Line Pin
PIEBALDconsult10-Oct-07 13:42
mvePIEBALDconsult10-Oct-07 13:42 
GeneralRe: Form as Command Line Pin
SDEspiritu11-Oct-07 4:48
SDEspiritu11-Oct-07 4:48 
Thanks. I didn't see the link above, but you gave me a starting point.

I actually created it as a Windows Application cause I didn't like that console flashing before the form came up when running as a gui.

so I used

[DllImport("kernel32.dll", SetLastError = true, ExactSpelling = true)]
static extern bool AttachConsole(int dwProcessId);

// then my entry code:
[STAThread]
static void Main(string[] args)
{
if (args.Length > 0)
{
// use -1 to attach to the parent
AttachConsole(-1);
CommandLine.Run(args);
}
else
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Main());
}
}


However. now my problem is that once my app executes the prompt does not show. It takes input and my app is not running in processes, but still, it's just ugly.

Oh, well. I appreciate the response and direction. Have a good one.
QuestionIIS Configuration Pin
raygn210-Oct-07 11:40
raygn210-Oct-07 11:40 
AnswerRe: IIS Configuration Pin
Yitzchok Dev10-Oct-07 19:50
Yitzchok Dev10-Oct-07 19:50 
QuestionEvents should not return values?! Pin
Domenic Denicola10-Oct-07 11:14
Domenic Denicola10-Oct-07 11:14 
AnswerRe: Events should not return values?! Pin
Christian Graus10-Oct-07 11:25
protectorChristian Graus10-Oct-07 11:25 
GeneralRe: Events should not return values?! Pin
Domenic Denicola10-Oct-07 11:31
Domenic Denicola10-Oct-07 11:31 
GeneralRe: Events should not return values?! Pin
Robert Rohde10-Oct-07 11:44
Robert Rohde10-Oct-07 11:44 
GeneralRe: Events should not return values?! Pin
Domenic Denicola10-Oct-07 11:57
Domenic Denicola10-Oct-07 11:57 
GeneralRe: Events should not return values?! Pin
lmoelleb10-Oct-07 20:53
lmoelleb10-Oct-07 20:53 
AnswerRe: Events should not return values?! Pin
Skippums10-Oct-07 11:39
Skippums10-Oct-07 11:39 
GeneralRe: Events should not return values?! Pin
Domenic Denicola10-Oct-07 11:42
Domenic Denicola10-Oct-07 11:42 
GeneralRe: Events should not return values?! Pin
Skippums11-Oct-07 4:57
Skippums11-Oct-07 4:57 
QuestionPublic and protected property Pin
Fernando A. Gomez F.10-Oct-07 11:07
Fernando A. Gomez F.10-Oct-07 11:07 
AnswerRe: Public and protected property Pin
Patrick Etc.10-Oct-07 11:08
Patrick Etc.10-Oct-07 11:08 
GeneralRe: Public and protected property Pin
Fernando A. Gomez F.10-Oct-07 11:13
Fernando A. Gomez F.10-Oct-07 11:13 
GeneralRe: Public and protected property Pin
Patrick Etc.10-Oct-07 11:44
Patrick Etc.10-Oct-07 11:44 
GeneralRe: Public and protected property Pin
Skippums10-Oct-07 11:23
Skippums10-Oct-07 11:23 
GeneralRe: Public and protected property Pin
Patrick Etc.10-Oct-07 11:44
Patrick Etc.10-Oct-07 11:44 

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.