Click here to Skip to main content
15,918,742 members
Home / Discussions / C#
   

C#

 
Questionform can not disappear after code visible=false Pin
KIDYA13-Jun-09 19:16
KIDYA13-Jun-09 19:16 
AnswerRe: form can not disappear after code visible=false Pin
OriginalGriff13-Jun-09 21:14
mveOriginalGriff13-Jun-09 21:14 
AnswerRe: form can not disappear after code visible=false Pin
Dave Kreskowiak13-Jun-09 21:49
mveDave Kreskowiak13-Jun-09 21:49 
Questioncrystal report data not showing Pin
neodeaths13-Jun-09 18:35
neodeaths13-Jun-09 18:35 
AnswerRe: crystal report data not showing Pin
KIDYA13-Jun-09 19:20
KIDYA13-Jun-09 19:20 
GeneralRe: crystal report data not showing Pin
neodeaths13-Jun-09 20:27
neodeaths13-Jun-09 20:27 
Questiontablet pc application Pin
radhikasharma13-Jun-09 10:40
radhikasharma13-Jun-09 10:40 
Questionshow tooltip even if treeview doesn't have focus? Pin
FocusedWolf13-Jun-09 9:41
FocusedWolf13-Jun-09 9:41 
AnswerRe: show tooltip even if treeview doesn't have focus? Pin
Mycroft Holmes13-Jun-09 16:23
professionalMycroft Holmes13-Jun-09 16:23 
GeneralRe: show tooltip even if treeview doesn't have focus? Pin
FocusedWolf13-Jun-09 18:58
FocusedWolf13-Jun-09 18:58 
GeneralRe: show tooltip even if treeview doesn't have focus? Pin
Mycroft Holmes13-Jun-09 21:07
professionalMycroft Holmes13-Jun-09 21:07 
GeneralRe: show tooltip even if treeview doesn't have focus? Pin
FocusedWolf13-Jun-09 22:01
FocusedWolf13-Jun-09 22:01 
QuestionRead from process Pin
thomaxz.tc13-Jun-09 9:37
thomaxz.tc13-Jun-09 9:37 
AnswerRe: Read from process Pin
Luc Pattyn13-Jun-09 10:12
sitebuilderLuc Pattyn13-Jun-09 10:12 
GeneralRe: Read from process Pin
thomaxz.tc13-Jun-09 12:29
thomaxz.tc13-Jun-09 12:29 
GeneralRe: Read from process Pin
Luc Pattyn13-Jun-09 12:37
sitebuilderLuc Pattyn13-Jun-09 12:37 
GeneralRe: Read from process Pin
thomaxz.tc13-Jun-09 12:47
thomaxz.tc13-Jun-09 12:47 
GeneralRe: Read from process Pin
Luc Pattyn13-Jun-09 13:37
sitebuilderLuc Pattyn13-Jun-09 13:37 
Hi,

1.
Why do you ignore the documentation, it says:
The event is enabled during asynchronous read operations on StandardOutput. To start asynchronous read operations, you must redirect the StandardOutput stream of a Process, add your event handler to the OutputDataReceived event, and call BeginOutputReadLine. Thereafter, the OutputDataReceived event signals each time the process writes a line to the redirected StandardOutput stream, until the process exits or calls CancelOutputRead.

2.
The DataReceived event executes on a ThreadPool thread, not on the main thread; so you are not allowed to touch any Control, however you could use Console.WriteLine() for debugging purposes. To touch Controls, you need the Control.InvokeRequired/Control.Invoke pattern.
BTW: Setting Control.CheckForIllegalCrossThreadCalls false is NOT the solution.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

GeneralRe: Read from process Pin
thomaxz.tc13-Jun-09 23:32
thomaxz.tc13-Jun-09 23:32 
Questionload a lot of Images to memory Pin
nryk13-Jun-09 8:57
nryk13-Jun-09 8:57 
AnswerRe: load a lot of Images to memory Pin
Luc Pattyn13-Jun-09 9:37
sitebuilderLuc Pattyn13-Jun-09 9:37 
GeneralRe: load a lot of Images to memory Pin
harold aptroot13-Jun-09 11:55
harold aptroot13-Jun-09 11:55 
GeneralRe: load a lot of Images to memory Pin
Luc Pattyn13-Jun-09 14:29
sitebuilderLuc Pattyn13-Jun-09 14:29 
GeneralRe: load a lot of Images to memory Pin
harold aptroot13-Jun-09 14:36
harold aptroot13-Jun-09 14:36 
GeneralRe: load a lot of Images to memory Pin
Luc Pattyn13-Jun-09 15:17
sitebuilderLuc Pattyn13-Jun-09 15:17 

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.