billm889

GetDockableWindow() not working in Release 10

Discussion created by billm889 on Jul 16, 2010
Latest reply on Aug 18, 2010 by beerbear
I'm working with the ESRI sample:
Simple logging dockable window with a custom context menu
http://resources.esri.com/help/9.3/ArcGISDesktop/dotnet/e439cf8c-778b-4fdb-b4c4-fab51a546ac6.htm

I am able to use it with 9.3.1 but not with ArcGIS release 10.

The call to GetDockableWindow() returns nothing in release 10.

I'm using vs2008 with MS .Net Framework 3.5 sp1

Is there a step I'm missing for version 10 of ArcGIS?

Thanks,

    Private Sub SetupDockableWindow()
        If m_dockableWindow Is Nothing Then
             Dim dockWindowManager As IDockableWindowManager
             dockWindowManager = CType(m_application, IDockableWindowManager)
             If Not dockWindowManager Is Nothing Then
                  Dim windowID As UID = New UID
                  'Dim windowID As UID = New UIDClass
                  windowID.Value = DockableWindowGuid
                  m_dockableWindow = dockWindowManager.GetDockableWindow(windowID)
                  If m_dockableWindow Is Nothing Then
                        MsgBox("m_dockableWindow is Nothing", MsgBoxStyle.Exclamation, "Bummer")
                  End If
             End If
        End If
    End Sub

Outcomes