Click here to Skip to main content
16,004,901 members
Home / Discussions / C#
   

C#

 
GeneralKey Press Pin
DucLinh30-Mar-04 14:54
DucLinh30-Mar-04 14:54 
GeneralRe: Key Press Pin
Charlie Williams30-Mar-04 16:02
Charlie Williams30-Mar-04 16:02 
Generalreading from sqldatareader Pin
pgraeve30-Mar-04 14:39
pgraeve30-Mar-04 14:39 
GeneralRe: reading from sqldatareader Pin
Heath Stewart30-Mar-04 16:42
protectorHeath Stewart30-Mar-04 16:42 
QuestionWhy do my graphics still flicker? Pin
adonisv30-Mar-04 14:30
adonisv30-Mar-04 14:30 
AnswerRe: Why do my graphics still flicker? Pin
Roman Rodov30-Mar-04 14:37
Roman Rodov30-Mar-04 14:37 
GeneralRe: Why do my graphics still flicker? Pin
adonisv30-Mar-04 14:40
adonisv30-Mar-04 14:40 
GeneralRe: Why do my graphics still flicker? Pin
Heath Stewart30-Mar-04 16:44
protectorHeath Stewart30-Mar-04 16:44 
You also need ControlStyles.AllPaintingInWmPaint, which is documented in the ControlStyles enumeration documentation.

Also, that enum is attributed with the FlagsAttribute, which means you can save your code some time and just use:
SetStyle(ControlStyles.AllPaintingInWmPaint |
  ControlStyles.DoubleBuffer | ControlStyles.UserPaint, true);
This gets compiled as a constant value so SetStyle is only called once.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Why do my graphics still flicker? Pin
adonisv31-Mar-04 16:36
adonisv31-Mar-04 16:36 
AnswerRe: Why do my graphics still flicker? Pin
blackthunder00130-Mar-04 14:41
blackthunder00130-Mar-04 14:41 
GeneralRe: Why do my graphics still flicker? Pin
adonisv30-Mar-04 14:59
adonisv30-Mar-04 14:59 
AnswerRe: Why do my graphics still flicker? Pin
Anonymous30-Mar-04 20:11
Anonymous30-Mar-04 20:11 
GeneralI call Invalidate() Pin
adonisv31-Mar-04 16:43
adonisv31-Mar-04 16:43 
Questionhandling multiple connections? Pin
Anonymous30-Mar-04 12:21
Anonymous30-Mar-04 12:21 
AnswerRe: handling multiple connections? Pin
Heath Stewart30-Mar-04 12:54
protectorHeath Stewart30-Mar-04 12:54 
GeneralIDisposable Pin
blackthunder00130-Mar-04 10:01
blackthunder00130-Mar-04 10:01 
GeneralRe: IDisposable Pin
Heath Stewart30-Mar-04 10:17
protectorHeath Stewart30-Mar-04 10:17 
GeneralRe: IDisposable Pin
blackthunder00130-Mar-04 14:32
blackthunder00130-Mar-04 14:32 
GeneralRe: IDisposable Pin
Heath Stewart30-Mar-04 16:24
protectorHeath Stewart30-Mar-04 16:24 
QuestionHow do i import/use these dll's ? Pin
mihaimarinescu30-Mar-04 8:53
mihaimarinescu30-Mar-04 8:53 
AnswerRe: How do i import/use these dll's ? Pin
Heath Stewart30-Mar-04 9:38
protectorHeath Stewart30-Mar-04 9:38 
AnswerRe: How do i import/use these dll's ? Pin
Dave Kreskowiak30-Mar-04 9:39
mveDave Kreskowiak30-Mar-04 9:39 
GeneralCasting again - from parent to child Pin
Grep30-Mar-04 8:31
Grep30-Mar-04 8:31 
GeneralRe: Casting again - from parent to child Pin
Heath Stewart30-Mar-04 9:43
protectorHeath Stewart30-Mar-04 9:43 
GeneralRe: Casting again - from parent to child Pin
Grep30-Mar-04 9:59
Grep30-Mar-04 9: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.