Click here to Skip to main content
15,916,042 members
Home / Discussions / C#
   

C#

 
GeneralRe: regex exclusion Pin
Christian Graus17-Mar-05 12:38
protectorChristian Graus17-Mar-05 12:38 
GeneralRe: regex exclusion Pin
Anonymous17-Mar-05 12:41
Anonymous17-Mar-05 12:41 
GeneralSeperate Thread Crash when Right Click in Windows Task Bar Pin
Tristan Rhodes17-Mar-05 10:40
Tristan Rhodes17-Mar-05 10:40 
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Heath Stewart17-Mar-05 14:38
protectorHeath Stewart17-Mar-05 14:38 
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Tristan Rhodes17-Mar-05 23:56
Tristan Rhodes17-Mar-05 23:56 
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Heath Stewart18-Mar-05 8:28
protectorHeath Stewart18-Mar-05 8:28 
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Tristan Rhodes20-Mar-05 4:21
Tristan Rhodes20-Mar-05 4:21 
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Heath Stewart20-Mar-05 6:08
protectorHeath Stewart20-Mar-05 6:08 
It would seem that you're forcing a repaint, then. Windows will send a visible window the WM_PAINT message (which in Windows Forms translates to the OnPaint handler, which fires the Paint event) along with the clipping rectangle that needs to be redrawn (redrawing only this rectangle or just objects that intersect it yields better performance for your application). If you force an update you will run into problems like you are now.

I recommend not forcing an update, but simply invalidate. Windows will send a WM_PAINT message ASAP if your window is visible. If it's not visible, then there's no point to send the message and you won't run into problems that you had when the app was minimized.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Tristan Rhodes20-Mar-05 10:00
Tristan Rhodes20-Mar-05 10:00 
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Heath Stewart20-Mar-05 11:37
protectorHeath Stewart20-Mar-05 11:37 
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Tristan Rhodes20-Mar-05 13:22
Tristan Rhodes20-Mar-05 13:22 
GeneralRe: Seperate Thread Crash when Right Click in Windows Task Bar Pin
Heath Stewart22-Mar-05 2:31
protectorHeath Stewart22-Mar-05 2:31 
GeneralNetwork programming Pin
felopater17-Mar-05 10:19
felopater17-Mar-05 10:19 
GeneralRe: Network programming Pin
Heath Stewart17-Mar-05 14:30
protectorHeath Stewart17-Mar-05 14:30 
GeneralRe: Network programming Pin
felopater18-Mar-05 10:52
felopater18-Mar-05 10:52 
GeneralRe: Network programming Pin
Heath Stewart18-Mar-05 20:06
protectorHeath Stewart18-Mar-05 20:06 
QuestionXMLSerializer and a collection of collections? Pin
Kasdoffe17-Mar-05 10:10
Kasdoffe17-Mar-05 10:10 
AnswerRe: XMLSerializer and a collection of collections? Pin
Kasdoffe17-Mar-05 10:13
Kasdoffe17-Mar-05 10:13 
GeneralCrystal Reports .NET Pin
SignMan35917-Mar-05 9:02
SignMan35917-Mar-05 9:02 
GeneralRe: Crystal Reports .NET Pin
Heath Stewart17-Mar-05 14:34
protectorHeath Stewart17-Mar-05 14:34 
GeneralProperty question Pin
thepersonof17-Mar-05 6:52
thepersonof17-Mar-05 6:52 
GeneralRe: Property question Pin
DavidNohejl17-Mar-05 7:08
DavidNohejl17-Mar-05 7:08 
GeneralRe: Property question Pin
Robert Rohde17-Mar-05 7:11
Robert Rohde17-Mar-05 7:11 
GeneralRe: Property question Pin
Nick Parker17-Mar-05 7:34
protectorNick Parker17-Mar-05 7:34 
GeneralRe: Property question Pin
J4amieC17-Mar-05 23:47
J4amieC17-Mar-05 23:47 

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.