Click here to Skip to main content
15,886,258 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: How to get the .exe file run after coying from a location to another location Pin
sohighthesky8-Mar-09 5:08
sohighthesky8-Mar-09 5:08 
QuestionGUI Problem Pin
anishkannan7-Mar-09 2:13
anishkannan7-Mar-09 2:13 
AnswerRe: GUI Problem Pin
DaveyM697-Mar-09 2:28
professionalDaveyM697-Mar-09 2:28 
AnswerRe: GUI Problem Pin
ABitSmart7-Mar-09 3:28
ABitSmart7-Mar-09 3:28 
AnswerRe: GUI Problem Pin
Natza Mitzi8-Mar-09 9:58
Natza Mitzi8-Mar-09 9:58 
QuestionMultiple Record Insert Pin
shafiullah1237-Mar-09 1:19
shafiullah1237-Mar-09 1:19 
AnswerRe: Multiple Record Insert Pin
fly9047-Mar-09 8:23
fly9047-Mar-09 8:23 
QuestionChanging size of Array at Runtime Pin
nagendrathecoder7-Mar-09 1:11
nagendrathecoder7-Mar-09 1:11 
AnswerRe: Changing size of Array at Runtime Pin
Aghosh Babu7-Mar-09 1:19
Aghosh Babu7-Mar-09 1:19 

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.