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:

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?
Updated 16-May-10 23:11pm
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:
  ControlStyles.AllPaintingInWmPaint |
  ControlStyles.UserPaint |

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