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

C#

 
AnswerRe: Get mouse coordinates anywhere on the form Pin
[Marc]28-Sep-05 11:29
[Marc]28-Sep-05 11:29 
QuestionMake an MDIChild not from MDIParent Pin
kulile28-Sep-05 9:46
kulile28-Sep-05 9:46 
AnswerRe: Make an MDIChild not from MDIParent Pin
Dave Kreskowiak28-Sep-05 11:18
mveDave Kreskowiak28-Sep-05 11:18 
GeneralRe: Make an MDIChild not from MDIParent Pin
Anonymous29-Sep-05 0:31
Anonymous29-Sep-05 0:31 
Questionwhat really happens to form when closed from controlbox X Pin
tekken2228-Sep-05 9:15
tekken2228-Sep-05 9:15 
AnswerRe: what really happens to form when closed from controlbox X Pin
Dan Neely28-Sep-05 10:03
Dan Neely28-Sep-05 10:03 
QuestionA Console window for Trace.WriteLine Pin
Account Removal28-Sep-05 8:59
Account Removal28-Sep-05 8:59 
AnswerRe: A Console window for Trace.WriteLine Pin
Heath Stewart28-Sep-05 9:26
protectorHeath Stewart28-Sep-05 9:26 
Applications for either the console or windows subsystem won't display output for Trace.WriteLine unless you add the following lines of code before calling your first Trace.WriteLine (or Debug.WriteLine):
Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
To display a console window for a Windows Forms applcation compiled for the window subsystem (because a Windows Forms application can be compiled for the console subsystem and work, plus write console data; ildasm.exe is compiled this way) you'd have to P/Invoke CreateConsoleScreenBuffer and write a TextWriter around that for use with the TextWriterTraceListener, or just write your own TraceListener derivative to do that.

The easiest is just compile your Windows Forms application using /t:exe instead of /t:winexe so that you already have a console attached to the process.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Customer Product-lifecycle Experience
Microsoft

[My Articles] [My Blog]
GeneralRe: A Console window for Trace.WriteLine Pin
Account Removal28-Sep-05 10:17
Account Removal28-Sep-05 10:17 
AnswerRe: A Console window for Trace.WriteLine Pin
dbetting28-Sep-05 11:18
dbetting28-Sep-05 11:18 
GeneralRe: A Console window for Trace.WriteLine Pin
Account Removal30-Sep-05 7:44
Account Removal30-Sep-05 7:44 
QuestionIs there an easier way to find things in C# Pin
Dave Everett28-Sep-05 7:36
Dave Everett28-Sep-05 7:36 
AnswerRe: Is there an easier way to find things in C# Pin
Heath Stewart28-Sep-05 8:16
protectorHeath Stewart28-Sep-05 8:16 
GeneralRe: Is there an easier way to find things in C# Pin
Dave Everett28-Sep-05 9:44
Dave Everett28-Sep-05 9:44 
GeneralRe: Is there an easier way to find things in C# Pin
Heath Stewart28-Sep-05 9:58
protectorHeath Stewart28-Sep-05 9:58 
GeneralRe: Is there an easier way to find things in C# Pin
Dave Everett28-Sep-05 10:36
Dave Everett28-Sep-05 10:36 
GeneralRe: Is there an easier way to find things in C# Pin
Heath Stewart28-Sep-05 12:06
protectorHeath Stewart28-Sep-05 12:06 
AnswerRe: Is there an easier way to find things in C# Pin
Niklas Ulvinge28-Sep-05 8:53
Niklas Ulvinge28-Sep-05 8:53 
AnswerRe: Is there an easier way to find things in C# Pin
Tom Larsen28-Sep-05 9:03
Tom Larsen28-Sep-05 9:03 
QuestionReading text from an HTML file based on its tags. Pin
Red_Wizard_Shot_The_Food28-Sep-05 6:27
Red_Wizard_Shot_The_Food28-Sep-05 6:27 
AnswerRe: Reading text from an HTML file based on its tags. Pin
Dario Solera28-Sep-05 6:55
Dario Solera28-Sep-05 6:55 
AnswerRe: Reading text from an HTML file based on its tags. Pin
Heath Stewart28-Sep-05 7:21
protectorHeath Stewart28-Sep-05 7:21 
AnswerRe: Reading text from an HTML file based on its tags. Pin
Dan Neely28-Sep-05 6:56
Dan Neely28-Sep-05 6:56 
Question.Net Application not Runing on Test System Pin
Zishan Haider28-Sep-05 6:07
Zishan Haider28-Sep-05 6:07 
QuestionAllowing selections in only one listview at a time Pin
Dan Neely28-Sep-05 5:41
Dan Neely28-Sep-05 5:41 

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.