Click here to Skip to main content
14,733,890 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Sirs,

I have an MDI form with many child forms.

I have applied a background image for all mdi child forms.

However, when I click the child form I get a flicker effect.

I wish to remove this.

How could I avoid this problem?
Posted
Updated 16-May-10 23:11pm
v2
Comments
Dalek Dave 17-May-10 4:11am
   
Edited for readability and grammar, question unchanged.

1 solution

Immediately after InitializeComponent in your forms, add the following command:
this.SetStyle(
  ControlStyles.AllPaintingInWmPaint |
  ControlStyles.UserPaint |
  ControlStyles.DoubleBuffer,true);
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900