- 423 名前:デフォルトの名無しさん mailto:sage [2009/01/31(土) 12:09:33 ]
- やっぱりダブルバッファのことね。それを使うとは一言も言ってない。
フォームにパネルとSystem.Timers.Timerはって、20msecに設定でこれ。 Font stockFont = new Font(FontFamily.GenericMonospace, 14); int locs = 0; private void timer1_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { using (Graphics g = panel1.CreateGraphics()) { g.FillRectangle(Brushes.Blue, new Rectangle(8, 8 + 28 * locs, 14 * 20, 28)); g.DrawString(Environment.TickCount.ToString(), stockFont, Brushes.Yellow, 10, 10 + 28 * locs); locs++; if (locs >= 5) locs = 0; } }
|

|