VNT

VNT

  • NA
  • 8
  • 0

drawing a large 'image'

May 26 2005 11:45 PM
Hi all, I have the following code: FontStyle lStyle = FontStyle.Bold; Font lArial = new Font(new FontFamily( "Arial" ), 9, lStyle); Graphics lGraphic = this.panel1.CreateGraphics(); SolidBrush lBrush = new SolidBrush(Color.Red); for (int z =0; z < 50; z++) lGraphic.DrawString(z.ToString(), lArial, lBrush, 50, 50 + z * 20); 1) I tried to draw a list of number (and a few images later) in a panel (panel1). However bc the list is long and I can't see the full list if it's longer the height of the panel. 2) Put this in a function and everytime when i minize the dialog and maximise. The graphic disapears. Please help With many thanks Trevor.

Answers (2)