This code is to draw a circle in the form with one button in vb.net.

Dim g as system.drawing.graphics
   dim p as new system.drawing.pent(system.drawing.color.Blueviolet)
  end sub

this is not working it is showing the error in the declaration of p any one can help me out to rectify this error

Recommended Answers

Line #3 - class name must be System.Drawing.Pen

Jump to Post

All 2 Replies

Line #3 - class name must be System.Drawing.Pen

dim p as new system.drawing.pen
its pen not pent

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.