HI,

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

Dim g as system.drawing.graphics
  g=me.creategraphics
   dim p as new system.drawing.pent(system.drawing.color.Blueviolet)
   g.drawellipse(p,150,100,30,60)
  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.