Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: 'List' help ? [modified] Pin
cor287921-Nov-08 13:31
cor287921-Nov-08 13:31 
GeneralRe: 'List' help ? Pin
Christian Graus21-Nov-08 20:54
protectorChristian Graus21-Nov-08 20:54 
QuestionDefining form client area Pin
Chris Copeland21-Nov-08 5:12
mveChris Copeland21-Nov-08 5:12 
AnswerRe: Defining form client area Pin
Rob Smiley21-Nov-08 6:03
Rob Smiley21-Nov-08 6:03 
GeneralRe: Defining form client area Pin
Chris Copeland21-Nov-08 6:17
mveChris Copeland21-Nov-08 6:17 
Questionthe efficieny consideration Pin
Seraph_summer21-Nov-08 3:28
Seraph_summer21-Nov-08 3:28 
AnswerRe: the efficieny consideration Pin
Ennis Ray Lynch, Jr.21-Nov-08 3:34
Ennis Ray Lynch, Jr.21-Nov-08 3:34 
QuestionForm Paint drawing incorrectly Pin
Chris Copeland21-Nov-08 3:14
mveChris Copeland21-Nov-08 3:14 
Hey!

I have a form that uses some pretty heft painting, it draws a custom caption, close, minimize, maximize buttons and border.
It works really perfectly (lagless) when resizing the form, but when I move the form offscreen slightly and move it back in, it draws the bottom border (or the border that was moved off-screen) repeatedly onto the form's body.

My solution to this was to apply Invalidate() into the Form.Move event, but as you can imagine it lags the form heavily when you move the form now. It doesn't lag it to the point that it's slow as such, but it does apply quite a bit of memory (sometimes up to 11k memory whereas on resize it's only around 5k).

Is there any way that I could possibly prevent the form from drawing the borders repeatedly over the body (which looks ugly) without having to completely invalidate the form everytime the form is moved?

Thanks.
AnswerRe: Form Paint drawing incorrectly Pin
Ennis Ray Lynch, Jr.21-Nov-08 3:35
Ennis Ray Lynch, Jr.21-Nov-08 3:35 
GeneralRe: Form Paint drawing incorrectly Pin
Chris Copeland21-Nov-08 3:49
mveChris Copeland21-Nov-08 3:49 
GeneralRe: Form Paint drawing incorrectly Pin
Ennis Ray Lynch, Jr.21-Nov-08 3:57
Ennis Ray Lynch, Jr.21-Nov-08 3:57 
GeneralRe: Form Paint drawing incorrectly Pin
Chris Copeland21-Nov-08 4:07
mveChris Copeland21-Nov-08 4:07 
GeneralRe: Form Paint drawing incorrectly Pin
Guffa21-Nov-08 5:01
Guffa21-Nov-08 5:01 
QuestionGeneric Class with Inheritance Pin
MatthysDT21-Nov-08 2:50
MatthysDT21-Nov-08 2:50 
AnswerRe: Generic Class with Inheritance Pin
cor287921-Nov-08 13:41
cor287921-Nov-08 13:41 
AnswerRe: Generic Class with Inheritance Pin
N a v a n e e t h21-Nov-08 17:33
N a v a n e e t h21-Nov-08 17:33 
GeneralRe: Generic Class with Inheritance Pin
MatthysDT23-Nov-08 19:23
MatthysDT23-Nov-08 19:23 
GeneralRe: Generic Class with Inheritance Pin
cor287924-Nov-08 4:05
cor287924-Nov-08 4:05 
GeneralRe: Generic Class with Inheritance Pin
MatthysDT24-Nov-08 19:11
MatthysDT24-Nov-08 19:11 
QuestionParent form Text Pin
pcjd6321-Nov-08 2:45
pcjd6321-Nov-08 2:45 
AnswerRe: Parent form Text Pin
Pedram Behroozi21-Nov-08 4:57
Pedram Behroozi21-Nov-08 4:57 
GeneralRe: Parent form Text Pin
pcjd6321-Nov-08 5:07
pcjd6321-Nov-08 5:07 
GeneralRe: Parent form Text Pin
pcjd6321-Nov-08 5:18
pcjd6321-Nov-08 5:18 
GeneralRe: Parent form Text Pin
Pedram Behroozi21-Nov-08 5:26
Pedram Behroozi21-Nov-08 5:26 
GeneralRe: Parent form Text Pin
pcjd6321-Nov-08 5:59
pcjd6321-Nov-08 5:59 

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.