Neil, VBA is available in 10.1. I have the licenses installed and have run it.
Actually, I can get it to open a form, but the form is not "owned" by the application window, so it floats independently and can get hidden behind the application window or other windows if I'm not careful. I have found a grand total of ZERO help or discussion of this topic so far.
Public Class ModelessDialog Implements System.Windows.Forms.IWin32Window Private hwnd As System.IntPtr ''' <summary> ''' Returns the form handle. ''' </summary> ''' <value></value> ''' <returns></returns> ''' <remarks></remarks> Public ReadOnly Property Handle() As System.IntPtr Implements System.Windows.Forms.IWin32Window.Handle Get Return hwnd End Get End Property ''' <summary> ''' Constructor. ''' </summary> ''' <param name="handle">The form handle passed as an IntPtr</param> ''' <remarks></remarks> Public Sub New(ByVal handle As System.IntPtr) hwnd = handle End Sub ''' <summary> ''' Constructor. ''' </summary> ''' <param name="handle">The form handle passed as an integer</param> ''' <remarks></remarks> Public Sub New(ByVal handle As Integer) hwnd = CType(handle, IntPtr) End Sub End Class
You're referring to the VBA editor, not Visual Studio. ESRI no longer supports VBA but I believe you can still contact them and get a license for it if you want to use it for ArcGIS 10. Starting with the 10.1 release, VBA will no longer be available.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.