I am trying to migrate an MXD stored VBA app that works fine in 9.3.1 to an Add-In for 10.1 (with VS 2010). The issue is that my button launches a dialog window where the users enters a parcel ID (GPIN) number then hits the “Submit” button and the app continues on to produce a formatted map that the uses can further customize in another dialog window.
The problem is that when the first form (frmEDSTopo) pops up the code doesn’t seem to wait for the user to click “Submit” or do anything because it already moves on to the error message that the GPIN doesn’t match any in the database, because the user is unable to enter one.
The hurdle I’m stuck on is how to I get the code to pause in the frmEDSTopo and await the user to click “Submit” before returning to the main code module (NRImaps.vb)? What’s confusing is that it worked in VBA (where most of my experience is in), so I’m lost as to why it doesn’t function the same way as a VB.Net Add-In; given that all the required VBA to .NET syntax changes have been made.
I’ve attached a zip file of the code.
Any help is greatly appreciated.
Thanks,
Claiborn
The problem is that when the first form (frmEDSTopo) pops up the code doesn’t seem to wait for the user to click “Submit” or do anything because it already moves on to the error message that the GPIN doesn’t match any in the database, because the user is unable to enter one.
The hurdle I’m stuck on is how to I get the code to pause in the frmEDSTopo and await the user to click “Submit” before returning to the main code module (NRImaps.vb)? What’s confusing is that it worked in VBA (where most of my experience is in), so I’m lost as to why it doesn’t function the same way as a VB.Net Add-In; given that all the required VBA to .NET syntax changes have been made.
I’ve attached a zip file of the code.
Any help is greatly appreciated.
Thanks,
Claiborn