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

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.