2
Answers

drawing a large 'image'

VNT

VNT

19y
2k
1
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)
0
VNT

VNT

NA 8 0 19y
Additional Information. Basically, I am trying to make the panel (or an alternate way of a panel) automatically having a scroll bar when the drawn text is longer than its height. And hope that when scrolling up or down the all texts are still visible. Many thanks Trevor
0
VNT

VNT

NA 8 0 19y
Additional Information. Basically, I am trying to make the panel (or an alternate way of a panel) automatically having a scroll bar when the drawn text is longer than it's size. And hope that when scrolling up or down the all texts are still visible. Many thanks Trevor