Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralRe: Implementing Security in C# Through Any Hardware Pin
partyganger16-Apr-04 10:57
partyganger16-Apr-04 10:57 
Generalthe Form stop to respond Pin
bouli16-Apr-04 4:32
bouli16-Apr-04 4:32 
GeneralRe: the Form stop to respond Pin
Heath Stewart16-Apr-04 6:31
protectorHeath Stewart16-Apr-04 6:31 
GeneralRe: the Form stop to respond Pin
bouli16-Apr-04 12:05
bouli16-Apr-04 12:05 
GeneralMessage Removed Pin
16-Apr-04 6:47
wibblewibblewibble16-Apr-04 6:47 
GeneralRe: the Form stop to respond Pin
bouli16-Apr-04 12:04
bouli16-Apr-04 12:04 
GeneralPainting Dynamic Objects Pin
TimTM16-Apr-04 4:22
TimTM16-Apr-04 4:22 
GeneralRe: Painting Dynamic Objects Pin
Heath Stewart16-Apr-04 6:35
protectorHeath Stewart16-Apr-04 6:35 
Just keep a reference to these objects and either dispose of them or simply move them to new coordinates. If you create new controls each time you read from the stream, you need to dispose those objects. If it's simply a matter of repainting, then make sure you're repainting the background and then the these other objects so that the "old" objects are not still painted on the on-screen bitmap.

Without knowing more about your implementation, it's difficult to answer your question.

Just consider how controls are painted on a form, though. Each control that is contained in the Controls collection property is sent the WM_PAINT message and paints itself after the container has invalidated it's surface, repainting the background as necessary. This is basically how all painting is done by the Window manager (i.e., Windows).

 

Microsoft MVP, Visual C#
My Articles
GeneralSourceSafe and References to COM Objects Pin
Andy Wieberneit16-Apr-04 3:50
Andy Wieberneit16-Apr-04 3:50 
GeneralRe: SourceSafe and References to COM Objects Pin
Heath Stewart16-Apr-04 4:05
protectorHeath Stewart16-Apr-04 4:05 
Questionowner draw trackbar? Pin
misterbear16-Apr-04 1:10
misterbear16-Apr-04 1:10 
AnswerRe: owner draw trackbar? Pin
Ernst Kuschke16-Apr-04 3:05
Ernst Kuschke16-Apr-04 3:05 
AnswerRe: owner draw trackbar? Pin
Heath Stewart16-Apr-04 4:14
protectorHeath Stewart16-Apr-04 4:14 
GeneralWord Automation Pin
Dominic Godin16-Apr-04 1:06
Dominic Godin16-Apr-04 1:06 
GeneralRe: Word Automation Pin
Ernst Kuschke16-Apr-04 2:59
Ernst Kuschke16-Apr-04 2:59 
GeneralRe: Word Automation Pin
Dominic Godin16-Apr-04 5:31
Dominic Godin16-Apr-04 5:31 
GeneralRe: Word Automation Pin
Heath Stewart16-Apr-04 5:49
protectorHeath Stewart16-Apr-04 5:49 
GeneralRe: Word Automation Pin
Dominic Godin19-Apr-04 22:06
Dominic Godin19-Apr-04 22:06 
GeneralRe: Word Automation Pin
Heath Stewart20-Apr-04 3:52
protectorHeath Stewart20-Apr-04 3:52 
GeneralRe: Word Automation Pin
Dominic Godin20-Apr-04 6:55
Dominic Godin20-Apr-04 6:55 
GeneralRe: Word Automation Pin
Heath Stewart20-Apr-04 8:31
protectorHeath Stewart20-Apr-04 8:31 
GeneralRe: Word Automation Pin
Dominic Godin21-Apr-04 1:37
Dominic Godin21-Apr-04 1:37 
GeneralRe: Word Automation Pin
Heath Stewart21-Apr-04 3:18
protectorHeath Stewart21-Apr-04 3:18 
GeneralRe: Word Automation Pin
Dominic Godin21-Apr-04 4:14
Dominic Godin21-Apr-04 4:14 
GeneralRe: Word Automation Pin
Heath Stewart21-Apr-04 6:22
protectorHeath Stewart21-Apr-04 6:22 

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.