Click here to Skip to main content
15,917,632 members
Home / Discussions / C#
   

C#

 
AnswerRe: N Queen algorithm design Pin
Sandeep Mewara5-May-12 23:21
mveSandeep Mewara5-May-12 23:21 
GeneralRe: N Queen algorithm design Pin
Richard MacCutchan6-May-12 1:38
mveRichard MacCutchan6-May-12 1:38 
GeneralMy Vote of 1 PinPopular
Keith Barrow6-May-12 2:30
professionalKeith Barrow6-May-12 2:30 
GeneralRe: N Queen algorithm design Pin
PIEBALDconsult6-May-12 5:35
mvePIEBALDconsult6-May-12 5:35 
QuestionImage Encryption Pin
Danial C5-May-12 21:41
Danial C5-May-12 21:41 
AnswerRe: Image Encryption Pin
Sandeep Mewara5-May-12 23:24
mveSandeep Mewara5-May-12 23:24 
QuestionProblems with PathGeometry Pin
gabriel1235-May-12 18:28
gabriel1235-May-12 18:28 
AnswerRe: Problems with PathGeometry Pin
Sandeep Mewara6-May-12 1:23
mveSandeep Mewara6-May-12 1:23 
Questionchoosing a instalation directory fo aplications Pin
smartradio5-May-12 7:48
smartradio5-May-12 7:48 
AnswerRe: choosing a instalation directory fo aplications Pin
Ravi Bhavnani5-May-12 12:56
professionalRavi Bhavnani5-May-12 12:56 
GeneralRe: choosing a instalation directory fo aplications Pin
smartradio7-May-12 14:00
smartradio7-May-12 14:00 
GeneralRe: choosing a instalation directory fo aplications Pin
Ravi Bhavnani7-May-12 14:09
professionalRavi Bhavnani7-May-12 14:09 
QuestionEvent/Appointment Calendar Pin
danieltm34-May-12 23:32
danieltm34-May-12 23:32 
AnswerRe: Event/Appointment Calendar Pin
Ravi Bhavnani5-May-12 13:01
professionalRavi Bhavnani5-May-12 13:01 
Questionstreaming text on panels (sheets) Pin
Danzy834-May-12 11:08
Danzy834-May-12 11:08 
AnswerRe: streaming text on panels (sheets) Pin
Luc Pattyn4-May-12 16:54
sitebuilderLuc Pattyn4-May-12 16:54 
Questiongridview row not triggering Pin
Dhyanga4-May-12 9:38
Dhyanga4-May-12 9:38 
AnswerRe: gridview row not triggering Pin
Eddy Vluggen6-May-12 1:12
professionalEddy Vluggen6-May-12 1:12 
QuestionHow to create existing chat control as a user control in C# Pin
ChandrakanthGaddam4-May-12 1:15
ChandrakanthGaddam4-May-12 1:15 
AnswerRe: How to create existing chat control as a user control in C# Pin
Ravi Bhavnani4-May-12 3:38
professionalRavi Bhavnani4-May-12 3:38 
NewsRe: How to create existing chat control as a user control in C# Pin
Eddy Vluggen4-May-12 5:36
professionalEddy Vluggen4-May-12 5:36 
AnswerRe: How to create existing chat control as a user control in C# Pin
Eddy Vluggen4-May-12 5:39
professionalEddy Vluggen4-May-12 5:39 
QuestionRedirect output from a unmanaged dll to a winform textbox Pin
andreas043-May-12 23:07
andreas043-May-12 23:07 
AnswerRe: Redirect output from a unmanaged dll to a winform textbox Pin
Richard MacCutchan3-May-12 23:39
mveRichard MacCutchan3-May-12 23:39 
AnswerRe: Redirect output from a unmanaged dll to a winform textbox Pin
BobJanova3-May-12 23:45
BobJanova3-May-12 23:45 
If the DLL's running in process, its console output should go to your stdout/stderr already. That means that you shouldn't need to explicitly redirect it with SetStdHandle; try removing that and see where its console output goes. (It should still go to the file through the redirected Console.SetXxx in your app.)

Then you need to create a wrapper for TextWriter that will give you write events; inheriting from StringWriter and overriding Write(char) should do it, but you might need to override Write(string) as well.

Pass an instance of this subclass to Console.SetOut/SetErr and hook up the event to write into your control.

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.