Click here to Skip to main content
15,912,578 members
Home / Discussions / C#
   

C#

 
GeneralRe: override onpaint Pin
Dave Kreskowiak29-Jun-06 10:31
mveDave Kreskowiak29-Jun-06 10:31 
GeneralRe: override onpaint Pin
Martin#29-Jun-06 10:41
Martin#29-Jun-06 10:41 
GeneralRe: override onpaint [modified] Pin
Dave Kreskowiak29-Jun-06 13:17
mveDave Kreskowiak29-Jun-06 13:17 
GeneralRe: override onpaint Pin
Martin#29-Jun-06 20:35
Martin#29-Jun-06 20:35 
AnswerRe: override onpaint Pin
Martin#29-Jun-06 5:40
Martin#29-Jun-06 5:40 
GeneralRe: override onpaint Pin
donkaiser29-Jun-06 5:51
donkaiser29-Jun-06 5:51 
GeneralRe: override onpaint Pin
Martin#29-Jun-06 6:19
Martin#29-Jun-06 6:19 
GeneralRe: override onpaint Pin
Ista29-Jun-06 6:36
Ista29-Jun-06 6:36 
you can also override the PaintBackground.

But the problem is because you see the client area when it redraws. You should create an off screen buffer. write to it, then write to the client after its all done. then you wont see any flicker.

WinForms is not a very good graphical program. And this is very complicated. I recommend an MFC book to fully understand how to control painting.

Although a method may exist to limit the flickering. I dont know of one and I use API's to contol that. But, a little flicker is okay for a business program.



Nick

1 line of code equals many bugs. So don't write any!!
GeneralRe: override onpaint Pin
LongRange.Shooter29-Jun-06 8:14
LongRange.Shooter29-Jun-06 8:14 
GeneralRe: override onpaint Pin
mikanu29-Jun-06 7:00
mikanu29-Jun-06 7:00 
GeneralRe: override onpaint Pin
donkaiser29-Jun-06 7:54
donkaiser29-Jun-06 7:54 
GeneralRe: override onpaint Pin
mikanu29-Jun-06 8:14
mikanu29-Jun-06 8:14 
QuestionNested datagrid: object reference not set to an instance of an object. Pin
leckey29-Jun-06 4:44
leckey29-Jun-06 4:44 
QuestionTiling an image in a PictureBox Pin
Cerasti29-Jun-06 4:41
Cerasti29-Jun-06 4:41 
AnswerRe: Tiling an image in a PictureBox Pin
Ista29-Jun-06 6:37
Ista29-Jun-06 6:37 
AnswerRe: Tiling an image in a PictureBox Pin
mikanu29-Jun-06 6:44
mikanu29-Jun-06 6:44 
QuestionC# Event Handling Questions Pin
joshp121729-Jun-06 3:40
joshp121729-Jun-06 3:40 
AnswerRe: C# Event Handling Questions Pin
Jun Du29-Jun-06 4:06
Jun Du29-Jun-06 4:06 
GeneralRe: C# Event Handling Questions Pin
joshp121729-Jun-06 4:16
joshp121729-Jun-06 4:16 
GeneralRe: C# Event Handling Questions Pin
Jun Du29-Jun-06 7:59
Jun Du29-Jun-06 7:59 
AnswerRe: C# Event Handling Questions Pin
led mike29-Jun-06 6:43
led mike29-Jun-06 6:43 
Questioncallto: and mailto: settings Pin
ante.mihalj29-Jun-06 2:32
ante.mihalj29-Jun-06 2:32 
AnswerRe: callto: and mailto: settings Pin
Super Lloyd29-Jun-06 3:15
Super Lloyd29-Jun-06 3:15 
GeneralRe: callto: and mailto: settings Pin
ante.mihalj29-Jun-06 21:34
ante.mihalj29-Jun-06 21:34 
GeneralRe: callto: and mailto: settings Pin
Super Lloyd29-Jun-06 21:51
Super Lloyd29-Jun-06 21:51 

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.