Click here to Skip to main content
16,010,876 members
Home / Discussions / C#
   

C#

 
AnswerRe: CLR Pin
Stephan Samuel2-Jun-06 10:02
Stephan Samuel2-Jun-06 10:02 
QuestionListItem is Not Exist in .NET 2.0 Pin
VenkataRamana.Gali2-Jun-06 9:08
VenkataRamana.Gali2-Jun-06 9:08 
AnswerRe: ListItem is Not Exist in .NET 2.0 Pin
Guffa2-Jun-06 9:10
Guffa2-Jun-06 9:10 
AnswerRe: ListItem is Not Exist in .NET 2.0 Pin
Nick Parker2-Jun-06 10:41
protectorNick Parker2-Jun-06 10:41 
QuestionDetecting change in screen resolution? Pin
Dan Neely2-Jun-06 8:28
Dan Neely2-Jun-06 8:28 
AnswerRe: Detecting change in screen resolution? Pin
Office Lineman2-Jun-06 8:37
Office Lineman2-Jun-06 8:37 
GeneralRe: Detecting change in screen resolution? Pin
Dan Neely2-Jun-06 9:45
Dan Neely2-Jun-06 9:45 
GeneralRe: Detecting change in screen resolution? Pin
Stephan Samuel2-Jun-06 10:10
Stephan Samuel2-Jun-06 10:10 
Office Lineman's answer is the official answer, and likely the best you're going to get.

It's not surprising that it fires before other downstream messages get processed, like the ones that actually change the resolution. It's an event-driven OS, so if you go ahead and repaint your form as soon as you get it: 1) your UI thread may not get traction on the processor before the resolution is actually changed, and 2) even if your form does repaint before the screen changes, the screen resolution will necessarily eventually change to match what you've repainted. Once the message is in the queue, it's going to happen unless there's a nasty leech sitting on your queue eating those messages (which there shouldn't be). If you're still listening for more resolution changes, and someone changes it again, it'll just get queued behind the other change, and you'll process them in order. By the time the user's done fiddling, you'll still be repainted to the right resolution.

Changing screen resolutions in Windows isn't nearly as pretty as many other events that you can listen for. This is because they really don't expect it to happen all that often. I don't envy you for having to write an application that deals with cranky events like this.

GeneralRe: Detecting change in screen resolution? Pin
Dan Neely3-Jun-06 12:12
Dan Neely3-Jun-06 12:12 
QuestionSample Projects Pin
kjosh2-Jun-06 8:18
kjosh2-Jun-06 8:18 
AnswerRe: Sample Projects Pin
Paul Brower2-Jun-06 9:26
Paul Brower2-Jun-06 9:26 
GeneralRe: Sample Projects Pin
kjosh2-Jun-06 10:05
kjosh2-Jun-06 10:05 
GeneralRe: Sample Projects Pin
Paul Brower2-Jun-06 10:25
Paul Brower2-Jun-06 10:25 
GeneralRe: Sample Projects Pin
kjosh2-Jun-06 11:08
kjosh2-Jun-06 11:08 
GeneralRe: Sample Projects Pin
Expert Coming3-Jun-06 14:48
Expert Coming3-Jun-06 14:48 
Questionconnecting to a remote machine that is not part of your network Pin
sopheapteng2-Jun-06 8:09
sopheapteng2-Jun-06 8:09 
AnswerRe: connecting to a remote machine that is not part of your network Pin
Stephan Samuel2-Jun-06 9:53
Stephan Samuel2-Jun-06 9:53 
GeneralRe: connecting to a remote machine that is not part of your network Pin
sopheapteng2-Jun-06 10:12
sopheapteng2-Jun-06 10:12 
GeneralRe: connecting to a remote machine that is not part of your network Pin
Stephan Samuel2-Jun-06 10:34
Stephan Samuel2-Jun-06 10:34 
GeneralRe: connecting to a remote machine that is not part of your network Pin
sopheapteng2-Jun-06 11:03
sopheapteng2-Jun-06 11:03 
GeneralRe: connecting to a remote machine that is not part of your network Pin
Stephan Samuel2-Jun-06 11:30
Stephan Samuel2-Jun-06 11:30 
QuestionBase Class Library Samples Pin
Robert M Greene2-Jun-06 7:00
Robert M Greene2-Jun-06 7:00 
GeneralRe: Base Class Library Samples Pin
Office Lineman2-Jun-06 8:17
Office Lineman2-Jun-06 8:17 
GeneralRe: Base Class Library Samples Pin
Robert M Greene2-Jun-06 8:35
Robert M Greene2-Jun-06 8:35 
AnswerRe: Base Class Library Samples Pin
Office Lineman2-Jun-06 9:09
Office Lineman2-Jun-06 9:09 

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.