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

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?


    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