ArcEngine 9.3 .Net Framework

Discussion created by ach.driss on Apr 18, 2012
Latest reply on Apr 19, 2012 by agray1
Hi !

I recover a point in pGeometry (type : Igeometry) , and I would like to draw it in the screen, but I have some troubles with the following code :

            Dim pGraphicsContainer As IGraphicsContainer
            pGraphicsContainer = Form1.AxMapControl1.Map.BasicGraphicsLayer
            Dim ppoint As IPoint
            ppoint = New Point
            ppoint = pGeometry  !!!
            pGraphicsContainer.AddElement(pElement, 0)

The cast is impossible between ppoint and pgeometry !!!