闪烁效果 [英] Flicker effect
本文介绍了闪烁效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
先生,
我有一个带有许多子窗体的MDI窗体.
我已为所有mdi子窗体应用了背景图片.
但是,当我单击子窗体时,会出现闪烁效果.
我希望删除它.
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?
推荐答案
在窗体中的InitializeComponent之后,立即添加以下命令:
Immediately after InitializeComponent in your forms, add the following command:
this.SetStyle(
ControlStyles.AllPaintingInWmPaint |
ControlStyles.UserPaint |
ControlStyles.DoubleBuffer,true);
这篇关于闪烁效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文