|
-
May 14th, 2008, 12:22 PM
#1
Thread Starter
Member
Declaring pens?
How do you declare pieces of graphics?
"Name 'pens' not declared"
e.Graphics.DrawRectangle(Pens.blue, 20, 50, 1, 1)
-
May 14th, 2008, 12:29 PM
#2
Frenzied Member
Re: Declaring pens?
Try
Private bluePen As New Pen(Color.Blue)
Me.graphics.DrawRectangle(bluePen , Me.oldX, Me.oldY, e.X, e.Y)
Pete
-
May 14th, 2008, 12:37 PM
#3
Thread Starter
Member
Re: Declaring pens?
Great, thank you. There was no need for "me".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|