| //ダブルバッファイリングするための処理 this.SetStyle(ControlStyles.DoubleBuffer, true); this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
この部分でthisインスタンスに対してダブルバッファリングをやっていた つまいこの場合Form1に対してダブルバッファリングをやっていたので ちらついたのでこれをパネルに対してダブルバッファリングしてくて
splitContainer1.Panel1.SetStyle(ControlStyles.DoubleBuffer, true); splitContainer1.Panel1.SetStyle(ControlStyles.UserPaint, true); splitContainer1.Panel1.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
このようにパネルに対してやったのですがどうもダメみたいなんですが このようにパネルにダブルバッファを実装するにはどうしたらいいでしょうか?
|