I have some confusion. I have items on the GoDocument and I want to implement a right-click delete. This works sporatically due to the following:
Me.Document.Remove(Me)
only works sometimes. For whatever reason, it fails due to:
Me.Document = Nothing ' Null Reference Exception
Not sure why I can still use/access this in some instances and in others the document reference is removed/nulled. Is there another way to safely access .Remove function when you don't have reference to the Document? I am familiar with the error, but not sure where the Document is being disposed/cleared.
As an FYI, the delete function is being initialize within the object (GoRectangle in this case).
Any thoughts would be helpful. And thanks as always.
dootndo2