Click here to Skip to main content
15,893,161 members
Home / Discussions / C#
   

C#

 
QuestionInvalidate wont actually do what I need to do Pin
Ista19-Aug-06 12:29
Ista19-Aug-06 12:29 
AnswerRe: Invalidate wont actually do what I need to do Pin
Guffa19-Aug-06 13:22
Guffa19-Aug-06 13:22 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista19-Aug-06 14:00
Ista19-Aug-06 14:00 
AnswerRe: Invalidate wont actually do what I need to do Pin
Guffa19-Aug-06 14:21
Guffa19-Aug-06 14:21 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista19-Aug-06 16:17
Ista19-Aug-06 16:17 
AnswerRe: Invalidate wont actually do what I need to do Pin
Guffa19-Aug-06 22:02
Guffa19-Aug-06 22:02 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista20-Aug-06 6:52
Ista20-Aug-06 6:52 
GeneralRe: Invalidate wont actually do what I need to do Pin
Guffa20-Aug-06 14:06
Guffa20-Aug-06 14:06 
Ista wrote:
How do you set it on an element? I dont see any property or method to do that.


I see. You are just using this:

Invalidate();

That is the same as:

Me.Invalidate();

In this case "Me" references the form, so you are invalidating the entire form. No wonder that you have problems.

Use the invalidate method on the control that you want redrawn. Example:

MyHugePictureBox.Invalidate();


---
b { font-weight: normal; }

GeneralRe: Invalidate wont actually do what I need to do Pin
Ista20-Aug-06 16:15
Ista20-Aug-06 16:15 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista21-Aug-06 8:07
Ista21-Aug-06 8:07 
AnswerRe: Invalidate wont actually do what I need to do Pin
Guffa22-Aug-06 8:37
Guffa22-Aug-06 8:37 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista22-Aug-06 9:07
Ista22-Aug-06 9:07 
GeneralRe: Invalidate wont actually do what I need to do Pin
Guffa23-Aug-06 9:54
Guffa23-Aug-06 9:54 
AnswerRe: Invalidate wont actually do what I need to do Pin
Nader Elshehabi20-Aug-06 1:28
Nader Elshehabi20-Aug-06 1:28 
GeneralRe: Invalidate wont actually do what I need to do Pin
Ista20-Aug-06 6:44
Ista20-Aug-06 6:44 
QuestionError in report ... [modified] Pin
mostafa_h19-Aug-06 9:25
mostafa_h19-Aug-06 9:25 
QuestionCancelEventHandler? Pin
Dominik Reichl19-Aug-06 8:15
Dominik Reichl19-Aug-06 8:15 
AnswerRe: CancelEventHandler? Pin
leppie19-Aug-06 11:00
leppie19-Aug-06 11:00 
GeneralRe: CancelEventHandler? Pin
Dominik Reichl19-Aug-06 22:35
Dominik Reichl19-Aug-06 22:35 
GeneralRe: CancelEventHandler? Pin
Vitaliy Tsvayer20-Aug-06 1:47
Vitaliy Tsvayer20-Aug-06 1:47 
GeneralRe: CancelEventHandler? Pin
leppie20-Aug-06 2:21
leppie20-Aug-06 2:21 
GeneralRe: CancelEventHandler? Pin
Vitaliy Tsvayer20-Aug-06 3:20
Vitaliy Tsvayer20-Aug-06 3:20 
GeneralRe: CancelEventHandler? Pin
leppie20-Aug-06 3:35
leppie20-Aug-06 3:35 
Questionhelp me Pin
Tahir Shah19-Aug-06 7:16
Tahir Shah19-Aug-06 7:16 
AnswerRe: help me Pin
Colin Angus Mackay19-Aug-06 8:11
Colin Angus Mackay19-Aug-06 8:11 

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.