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
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.