By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,594 Members | 2,059 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,594 IT Pros & Developers. It's quick & easy.

This code gives an error that DrawArc is not a method

P: 11
'Draw a face
Dim xInteger As Integer = Convert.ToInt32(Me.Width / 8)
Dim yInteger As Integer = Convert.ToInt32(Me.Height / 8)
Dim yellowPen As New Pen(Color.Yellow, 2)
Dim DrawArc As New Pen(Color.Black, 3)
With e.Graphics
'Draw the face
.FillEllipse(Brushes.Yellow, xInteger, yInteger, 125, 125)
'Draw Eyes
.FillEllipse(Brushes.Black, xInteger, yInteger, 20, 20)
xInteger = 35
yInteger = 80
.FillEllipse(Brushes.Black, xInteger, yInteger, 20, 20)
xInteger = 175
yInteger = 80
DrawArc(Pens.Black, xInteger - 10, yInteger, xInteger + 80, yInteger)
End With
End Sub


Does anyone know how to make that error disappear?
Dec 3 '07 #1
Share this Question
Share on Google+
1 Reply


kadghar
Expert 100+
P: 1,295
'Draw a face
...
Does anyone know how to make that error disappear?
may be you forgot a dot before DwawArc
Dec 3 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.