Click here to Skip to main content
15,898,035 members
Home / Discussions / C#
   

C#

 
QuestionDetect if control is being rendered in the forms designer ? Pin
Christian Graus8-Nov-05 14:38
protectorChristian Graus8-Nov-05 14:38 
AnswerRe: Detect if control is being rendered in the forms designer ? Pin
Christian Graus8-Nov-05 14:54
protectorChristian Graus8-Nov-05 14:54 
GeneralRe: Detect if control is being rendered in the forms designer ? Pin
Jon Rista9-Nov-05 10:58
Jon Rista9-Nov-05 10:58 
GeneralRe: Detect if control is being rendered in the forms designer ? Pin
Christian Graus9-Nov-05 11:13
protectorChristian Graus9-Nov-05 11:13 
Questionhelp help help Pin
engriri20068-Nov-05 14:18
engriri20068-Nov-05 14:18 
AnswerRe: help help help Pin
Christian Graus8-Nov-05 14:23
protectorChristian Graus8-Nov-05 14:23 
GeneralRe: help help help Pin
Allah On Acid8-Nov-05 16:18
Allah On Acid8-Nov-05 16:18 
QuestionConsole.Writeline() in Forms Pin
MrEyes8-Nov-05 12:31
MrEyes8-Nov-05 12:31 
I have an application that can be used via a GUI interface or command line arguments. If arguments are passed the GUI isnt displayed.

Now this all works fine, but I have one small problem that I cant fathom.

When running in "command line" mode I use Console.Writeline to output messages (e.g. errors). If I run the application via a command window with command line parameters the Writeline doesnt output anything at all. Although the code does execute successfully. I can only assume that the Writeline data is being directed somewhere else, not exactly sure where though.

Interestingly if I run it in debug through Visual Studio, the VS output window does show the messages.

Does anybody know whats going on here?

p.s. The project is compiled as a Windows Form, and the form has the Main function in it. Within Main I check for command line arguments if they exist the form is not initialised and the code diverts off into a command line process class.

post.mode = postmodes.signature;
SELECT everything FROM everywhere WHERE something = something_else;
> 1 Row Returned
> 42
AnswerRe: Console.Writeline() in Forms Pin
S. Senthil Kumar8-Nov-05 19:38
S. Senthil Kumar8-Nov-05 19:38 
GeneralRe: Console.Writeline() in Forms Pin
MrEyes8-Nov-05 23:29
MrEyes8-Nov-05 23:29 
GeneralRe: Console.Writeline() in Forms Pin
S. Senthil Kumar9-Nov-05 21:40
S. Senthil Kumar9-Nov-05 21:40 
GeneralRe: Console.Writeline() in Forms Pin
S. Senthil Kumar9-Nov-05 21:42
S. Senthil Kumar9-Nov-05 21:42 
QuestionCreating Multiple Forms in my application Pin
kourvoisier8-Nov-05 12:06
kourvoisier8-Nov-05 12:06 
AnswerRe: Creating Multiple Forms in my application Pin
Christian Graus8-Nov-05 12:48
protectorChristian Graus8-Nov-05 12:48 
GeneralRe: Creating Multiple Forms in my application Pin
kourvoisier8-Nov-05 15:12
kourvoisier8-Nov-05 15:12 
GeneralRe: Creating Multiple Forms in my application Pin
Christian Graus8-Nov-05 15:16
protectorChristian Graus8-Nov-05 15:16 
GeneralRe: Creating Multiple Forms in my application Pin
kourvoisier8-Nov-05 16:55
kourvoisier8-Nov-05 16:55 
GeneralRe: Creating Multiple Forms in my application Pin
Christian Graus8-Nov-05 17:13
protectorChristian Graus8-Nov-05 17:13 
GeneralRe: Creating Multiple Forms in my application Pin
kourvoisier8-Nov-05 17:21
kourvoisier8-Nov-05 17:21 
GeneralRe: Creating Multiple Forms in my application Pin
Christian Graus8-Nov-05 17:35
protectorChristian Graus8-Nov-05 17:35 
GeneralRe: Creating Multiple Forms in my application Pin
kourvoisier8-Nov-05 19:18
kourvoisier8-Nov-05 19:18 
GeneralRe: Creating Multiple Forms in my application Pin
Christian Graus9-Nov-05 10:18
protectorChristian Graus9-Nov-05 10:18 
GeneralRe: Creating Multiple Forms in my application Pin
S. Senthil Kumar8-Nov-05 20:01
S. Senthil Kumar8-Nov-05 20:01 
GeneralRe: Creating Multiple Forms in my application Pin
kourvoisier9-Nov-05 12:16
kourvoisier9-Nov-05 12:16 
GeneralRe: Creating Multiple Forms in my application Pin
kourvoisier9-Nov-05 17:36
kourvoisier9-Nov-05 17:36 

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.