The following code was in my "ThisDocument" in VBA. I've exported it to it's own .NET Class. How do I set pMxdoc to my Arcmap session in the code - it has null value for now?
Dim pMxDoc As IMxDocument Set pMxDoc = ThisDocument
Dim pDoc As IDocument = m_application.Document Dim pMxDoc As IMxDocument = CType(pDoc, IMxDocument)
And what is the best way to Dim forms? I've seen three ways: as "Object"; as "Form1"; as System.Windows.Forms.Form - also null value for now ....
Dim frm as Myform=new Myform() 'Myform is the name of your form frm.show
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.