How to write text over rectangles
Hi all I have a loop that draws rectangles and I want to draw text only on the first box in the loop. How can I do this, here is my code. It draws the text in each box but I only want it to be in the first box, please help! thanks
[code]
For x = ((SZL1val+12) mod 24) To ((SZL2val+12) mod 24) : szlboxes1(x) = New Rectangle(20+((35*(X+1))), 55, 35, 25)
g.DrawString(SZLWXTXT1, New Font("Veranda",7,FontStyle.BOLD),Brushes.Black,new RectangleF(20+((35*(X+1))), 55, 35, 25))
Next x
[/code]
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

MykonineRank #2,671 · 521 reputationPosted Apr 12, 2005, 10:49 AM EDT
mibuytRank #3,026 · 476 reputationPosted Apr 16, 2005, 8:24 AM EDT