Click here to Skip to main content
15,888,600 members
Home / Discussions / Graphics
   

Graphics

 
GeneralRe: CreateDIBitmap with 32bits RGBA data Pin
Vlasta_13-Mar-08 11:00
Vlasta_13-Mar-08 11:00 
GeneralRe: CreateDIBitmap with 32bits RGBA data Pin
Mark Salsbery13-Mar-08 11:25
Mark Salsbery13-Mar-08 11:25 
GeneralRe: CreateDIBitmap with 32bits RGBA data Pin
Mark Salsbery13-Mar-08 11:31
Mark Salsbery13-Mar-08 11:31 
GeneralRe: CreateDIBitmap with 32bits RGBA data Pin
Vlasta_13-Mar-08 12:30
Vlasta_13-Mar-08 12:30 
GeneralRe: CreateDIBitmap with 32bits RGBA data Pin
Mark Salsbery13-Mar-08 13:25
Mark Salsbery13-Mar-08 13:25 
GeneralRe: CreateDIBitmap with 32bits RGBA data Pin
Vlasta_13-Mar-08 14:04
Vlasta_13-Mar-08 14:04 
Generaldirectsound can not be initized Pin
mwolf12212-Mar-08 16:39
mwolf12212-Mar-08 16:39 
GeneralControlStyles.DoubleBuffer Issue Pin
Harvey Saayman7-Mar-08 2:12
Harvey Saayman7-Mar-08 2:12 
Hey guys

im having a problem getting DoubleBuffer to work.

on my form i have a panel on which i dynamically draw a time line with intervals, arrows, arrowheads ect. The panel is docked to the form, when u resize the form the panel resizes with it and then redraws the time line.

now all that works perfect but the image flickers as i resize the form, i searched through some articles to see how to enable double buffering and did just that... but the flicker is still there Confused | :confused:

my forms constructor is as follows
public Form1()
{
    InitializeComponent();
    canvas = new Rectangle(0, 0, panel1.Width, panel1.Height);
    calcVariables();
    SetStyle(ControlStyles.AllPaintingInWmPaint | 
             ControlStyles.UserPaint | 
             ControlStyles.DoubleBuffer | 
             ControlStyles.ResizeRedraw, 
             true);
}


what am i doing wrong?

i can e-mail u the demo project if it wil help

thanx

Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
think BIG and kick ASS
you.suck = (you.passion != Programming)

GeneralRe: ControlStyles.DoubleBuffer Issue Pin
Luc Pattyn7-Mar-08 2:20
sitebuilderLuc Pattyn7-Mar-08 2:20 
GeneralRe: ControlStyles.DoubleBuffer Issue Pin
Harvey Saayman9-Mar-08 20:23
Harvey Saayman9-Mar-08 20:23 
GeneralRe: ControlStyles.DoubleBuffer Issue Pin
Luc Pattyn10-Mar-08 0:51
sitebuilderLuc Pattyn10-Mar-08 0:51 
GeneralRe: ControlStyles.DoubleBuffer Issue Pin
Harvey Saayman10-Mar-08 1:22
Harvey Saayman10-Mar-08 1:22 
GeneralRe: ControlStyles.DoubleBuffer Issue Pin
Martin#12-Mar-08 3:43
Martin#12-Mar-08 3:43 
Questiondrawing in a rectangle? Pin
Harvey Saayman6-Mar-08 3:35
Harvey Saayman6-Mar-08 3:35 
GeneralRe: drawing in a rectangle? Pin
Luc Pattyn6-Mar-08 8:00
sitebuilderLuc Pattyn6-Mar-08 8:00 
GeneralRe: drawing in a rectangle? Pin
Harvey Saayman6-Mar-08 19:43
Harvey Saayman6-Mar-08 19:43 
GeneralRe: drawing in a rectangle? Pin
Harvey Saayman6-Mar-08 22:57
Harvey Saayman6-Mar-08 22:57 
GeneralRe: drawing in a rectangle? Pin
Luc Pattyn7-Mar-08 0:07
sitebuilderLuc Pattyn7-Mar-08 0:07 
GeneralRe: drawing in a rectangle? Pin
Harvey Saayman7-Mar-08 0:54
Harvey Saayman7-Mar-08 0:54 
Generalthis.CreateGraphics() Issue Pin
Harvey Saayman5-Mar-08 21:32
Harvey Saayman5-Mar-08 21:32 
GeneralRe: this.CreateGraphics() Issue Pin
Tim Craig5-Mar-08 22:33
Tim Craig5-Mar-08 22:33 
GeneralRe: this.CreateGraphics() Issue Pin
Mark Salsbery6-Mar-08 6:06
Mark Salsbery6-Mar-08 6:06 
GeneralRe: this.CreateGraphics() Issue Pin
Harvey Saayman6-Mar-08 19:45
Harvey Saayman6-Mar-08 19:45 
GeneralRe: this.CreateGraphics() Issue Pin
Luc Pattyn6-Mar-08 7:01
sitebuilderLuc Pattyn6-Mar-08 7:01 
GeneralRe: this.CreateGraphics() Issue Pin
Harvey Saayman6-Mar-08 19:48
Harvey Saayman6-Mar-08 19:48 

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.