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

C#

 
AnswerRe: Array Sort Pin
fly9047-Mar-09 8:57
fly9047-Mar-09 8:57 
AnswerRe: Array Sort [modified] Pin
harold aptroot7-Mar-09 8:59
harold aptroot7-Mar-09 8:59 
QuestionClick images with webcam using c# Pin
Umangj7-Mar-09 8:26
Umangj7-Mar-09 8:26 
AnswerRe: Click images with webcam using c# Pin
DaveyM697-Mar-09 10:26
professionalDaveyM697-Mar-09 10:26 
GeneralRe: Click images with webcam using c# Pin
Umangj7-Mar-09 10:29
Umangj7-Mar-09 10:29 
GeneralRe: Click images with webcam using c# Pin
DaveyM697-Mar-09 11:20
professionalDaveyM697-Mar-09 11:20 
AnswerRe: Click images with webcam using c# Pin
Eddy Vluggen8-Mar-09 2:35
professionalEddy Vluggen8-Mar-09 2:35 
QuestionVista or .NET remember? Access to System32 Pin
NorbertKl177-Mar-09 6:48
NorbertKl177-Mar-09 6:48 
AnswerRe: Vista or .NET remember? Access to System32 Pin
harold aptroot7-Mar-09 7:22
harold aptroot7-Mar-09 7:22 
GeneralRe: Vista or .NET remember? Access to System32 Pin
NorbertKl177-Mar-09 8:31
NorbertKl177-Mar-09 8:31 
GeneralRe: Vista or .NET remember? Access to System32 Pin
harold aptroot7-Mar-09 8:53
harold aptroot7-Mar-09 8:53 
GeneralRe: Vista or .NET remember? Access to System32 Pin
NorbertKl177-Mar-09 9:22
NorbertKl177-Mar-09 9:22 
GeneralRe: Vista or .NET remember? Access to System32 Pin
Natza Mitzi8-Mar-09 9:46
Natza Mitzi8-Mar-09 9:46 
QuestionColor of label Pin
mrithula87-Mar-09 5:33
mrithula87-Mar-09 5:33 
AnswerRe: Color of label Pin
Luc Pattyn7-Mar-09 5:43
sitebuilderLuc Pattyn7-Mar-09 5:43 
GeneralRe: Color of label Pin
mrithula87-Mar-09 6:50
mrithula87-Mar-09 6:50 
AnswerRe: Color of label Pin
Luc Pattyn7-Mar-09 7:01
sitebuilderLuc Pattyn7-Mar-09 7:01 
Hi,

is the statement lb9.BackColor = Color.Green; being executed at all? check either by single-stepping or by adding some observation statement (Console.WriteLine("green")) inside the code block.

If it is and it does not show, here are several possible reasons:
- your code is not running on the main thread (then lb9 needs InvokeReqruied/Invoke)
- your code is followed by something that takes long or forever, and sits in an event handler (such as a button click); the GUI effects will show only when its done unless you insert an Applications.DoEvents() which is just a hack, not a recommendation.
- your code is followed by something that changes the color back before the GUI had an opportunity to show the changes.

Learn to debug: add observational code (logging, tracing, MessageBox, Console.WriteLine, whatever) and/or single-step.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Sunday, June 12, 2011 9:12 AM

GeneralRe: Color of label Pin
Expert Coming7-Mar-09 7:25
Expert Coming7-Mar-09 7:25 
GeneralRe: Color of label Pin
Colin Angus Mackay8-Mar-09 4:13
Colin Angus Mackay8-Mar-09 4:13 
AnswerRe: Color of label Pin
Luc Pattyn7-Mar-09 9:36
sitebuilderLuc Pattyn7-Mar-09 9:36 
GeneralRe: Color of label Pin
mrithula88-Mar-09 6:58
mrithula88-Mar-09 6:58 
AnswerRe: Color of label Pin
Luc Pattyn8-Mar-09 9:50
sitebuilderLuc Pattyn8-Mar-09 9:50 
QuestionInstalling application that queries FoxPro tables Pin
dptalt7-Mar-09 5:12
dptalt7-Mar-09 5:12 
QuestionHow to get the .exe file run after coying from a location to another location Pin
tyrone01097-Mar-09 2:52
tyrone01097-Mar-09 2:52 
AnswerRe: How to get the .exe file run after coying from a location to another location Pin
DaveyM697-Mar-09 3:08
professionalDaveyM697-Mar-09 3:08 

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.