Click here to Skip to main content
15,913,091 members
Home / Discussions / C#
   

C#

 
QuestionAny query about northwind? Pin
omegazafer29-Dec-07 9:44
omegazafer29-Dec-07 9:44 
AnswerRe: Any query about northwind? Pin
Paul Conrad30-Dec-07 6:44
professionalPaul Conrad30-Dec-07 6:44 
GeneralRe: Any query about northwind? Pin
omegazafer30-Dec-07 10:09
omegazafer30-Dec-07 10:09 
GeneralRe: Any query about northwind? Pin
Paul Conrad30-Dec-07 10:30
professionalPaul Conrad30-Dec-07 10:30 
GeneralRe: Any query about northwind? Pin
omegazafer30-Dec-07 10:57
omegazafer30-Dec-07 10:57 
Generali need your help ....am stuck Pin
netJP12L29-Dec-07 9:40
netJP12L29-Dec-07 9:40 
GeneralA little problem Pin
zeeShan anSari29-Dec-07 8:28
zeeShan anSari29-Dec-07 8:28 
AnswerRe: A little problem Pin
Guffa29-Dec-07 9:03
Guffa29-Dec-07 9:03 
Each color change causes a message that will be send to the button so that it will change it's color. The messages are queued and are all executed when you return the control to the message pump (when you exit the method).

You can use the DoEvents method to make the message pump handle the messages, and a delay so that you have time to actually see the change:

foreach (Color c in new Color[] { Color.Red, Color.Blue, Color.Black, Color.Yellow}) {
button.Color = c;
DoEvents();
Thread.Sleep(500);
}

However, if you really want to do something like this, you should use a timer instead.

Experience is the sum of all the mistakes you have done.

GeneralRe: A little problem Pin
Rich Insley29-Dec-07 9:08
Rich Insley29-Dec-07 9:08 
QuestionGetting handle to browser window? Pin
cakewalkr729-Dec-07 3:30
cakewalkr729-Dec-07 3:30 
GeneralRe: Getting handle to browser window? Pin
Scott Dorman29-Dec-07 3:59
professionalScott Dorman29-Dec-07 3:59 
GeneralException handling scenario Pin
beatles169229-Dec-07 1:23
beatles169229-Dec-07 1:23 
GeneralRe: Exception handling scenario Pin
Luc Pattyn29-Dec-07 1:58
sitebuilderLuc Pattyn29-Dec-07 1:58 
Generalmake binary file Pin
zafax_28-Dec-07 22:47
zafax_28-Dec-07 22:47 
GeneralRe: make binary file Pin
Colin Angus Mackay29-Dec-07 2:40
Colin Angus Mackay29-Dec-07 2:40 
GeneralRe: make binary file Pin
Scott Dorman29-Dec-07 3:35
professionalScott Dorman29-Dec-07 3:35 
GeneralRe: make binary file Pin
zafax_29-Dec-07 3:55
zafax_29-Dec-07 3:55 
GeneralRe: make binary file Pin
Scott Dorman29-Dec-07 4:01
professionalScott Dorman29-Dec-07 4:01 
GeneralRe: make binary file Pin
zafax_29-Dec-07 4:06
zafax_29-Dec-07 4:06 
GeneralGeneral problem with c sharp in VS2005 Pin
jgrogan28-Dec-07 21:25
jgrogan28-Dec-07 21:25 
GeneralRe: General problem with c sharp in VS2005 Pin
Luc Pattyn29-Dec-07 2:03
sitebuilderLuc Pattyn29-Dec-07 2:03 
GeneralRe: General problem with c sharp in VS2005 Pin
jgrogan29-Dec-07 2:19
jgrogan29-Dec-07 2:19 
GeneralRe: General problem with c sharp in VS2005 Pin
Luc Pattyn29-Dec-07 2:42
sitebuilderLuc Pattyn29-Dec-07 2:42 
GeneralRe: General problem with c sharp in VS2005 Pin
DaveyM6929-Dec-07 3:33
professionalDaveyM6929-Dec-07 3:33 
GeneralRe: General problem with c sharp in VS2005 Pin
Paul Conrad29-Dec-07 6:50
professionalPaul Conrad29-Dec-07 6:50 

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.