Click here to Skip to main content
15,888,026 members
Home / Discussions / C#
   

C#

 
GeneralRe: Creating Blank if zero decimal format string Pin
AndrusM31-Aug-08 5:58
AndrusM31-Aug-08 5:58 
GeneralRe: Creating Blank if zero decimal format string Pin
Wendelius31-Aug-08 6:33
mentorWendelius31-Aug-08 6:33 
GeneralRe: Creating Blank if zero decimal format string Pin
AndrusM31-Aug-08 9:57
AndrusM31-Aug-08 9:57 
GeneralRe: Creating Blank if zero decimal format string Pin
Wendelius31-Aug-08 10:24
mentorWendelius31-Aug-08 10:24 
GeneralRe: Creating Blank if zero decimal format string Pin
AndrusM31-Aug-08 10:35
AndrusM31-Aug-08 10:35 
GeneralRe: Creating Blank if zero decimal format string Pin
Wendelius31-Aug-08 10:58
mentorWendelius31-Aug-08 10:58 
QuestionCommandLineProcess Pin
netDeveloper30-Aug-08 5:34
netDeveloper30-Aug-08 5:34 
AnswerRe: CommandLineProcess Pin
Daniel Grunwald30-Aug-08 10:09
Daniel Grunwald30-Aug-08 10:09 
netDeveloper wrote:
"Source = Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack."


That just means that the debugger could not evaluate something because a native frame (in this case, the set_Text call) is on top of the stack.
The error is something different: Windows Forms is not thread-safe, but asynchronous events like this run on a separate thread. You need to use Form.Invoke / Form.BeginInvoke to access Windows Forms controls from another thread:
form1.BeginInvoke(new MethodInvoker(delegate { form1.txtDepDetails.Text = e.Text; }));


Note that I've made form1 a reference that you'll have to pass to the class containing OnOutputLine. Don't make text boxes "static"!
GeneralRe: CommandLineProcess Pin
netDeveloper31-Aug-08 0:26
netDeveloper31-Aug-08 0:26 
QuestionHow not to close the window Pin
Silvyster30-Aug-08 2:52
Silvyster30-Aug-08 2:52 
AnswerRe: How not to close the window Pin
Anthony Mushrow30-Aug-08 2:58
professionalAnthony Mushrow30-Aug-08 2:58 
AnswerRe: How not to close the window Pin
Abhijit Jana30-Aug-08 3:03
professionalAbhijit Jana30-Aug-08 3:03 
AnswerRe: How not to close the window Pin
DaveyM6930-Aug-08 8:43
professionalDaveyM6930-Aug-08 8:43 
QuestionListviewcontrol and background color Pin
Yustme30-Aug-08 1:09
Yustme30-Aug-08 1:09 
AnswerRe: Listviewcontrol and background color Pin
Wendelius30-Aug-08 3:02
mentorWendelius30-Aug-08 3:02 
GeneralRe: Listviewcontrol and background color Pin
Yustme30-Aug-08 7:47
Yustme30-Aug-08 7:47 
GeneralRe: Listviewcontrol and background color Pin
Wendelius30-Aug-08 8:03
mentorWendelius30-Aug-08 8:03 
GeneralRe: Listviewcontrol and background color Pin
Yustme30-Aug-08 8:40
Yustme30-Aug-08 8:40 
GeneralRe: Listviewcontrol and background color Pin
Wendelius30-Aug-08 8:57
mentorWendelius30-Aug-08 8:57 
GeneralRe: Listviewcontrol and background color Pin
Yustme30-Aug-08 10:50
Yustme30-Aug-08 10:50 
GeneralRe: Listviewcontrol and background color Pin
Wendelius30-Aug-08 11:05
mentorWendelius30-Aug-08 11:05 
GeneralRe: Listviewcontrol and background color Pin
Yustme30-Aug-08 22:08
Yustme30-Aug-08 22:08 
GeneralRe: Listviewcontrol and background color Pin
Wendelius30-Aug-08 22:27
mentorWendelius30-Aug-08 22:27 
GeneralRe: Listviewcontrol and background color [modified] Pin
Yustme31-Aug-08 0:14
Yustme31-Aug-08 0:14 
GeneralRe: Listviewcontrol and background color Pin
Wendelius31-Aug-08 1:29
mentorWendelius31-Aug-08 1:29 

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.