10 TIPs - To Become a Good Developer/Programmer
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
clowns119
0
1
0
how to write text over rectangles
Apr 3 2005 7:42 PM
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]
Reply
Answers (
2
)
Resetting device error
painting with GDI+