Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Possible Bug in DockingPane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Possible Bug in DockingPane

 Post Reply Post Reply
Author
Message
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post Topic: Possible Bug in DockingPane
    Posted: 02 October 2006 at 4:21pm
In anticipation of a possible cahnge from VB6 to .NET, I'm going through our code and adding references to MS Word and Excel object models (I understand .NET does not like any objects established as "As Object").
 
I remember this happening previously, but didn't care since I was using late binding, but after adding the Word and Excel references, I'm getting a "type mismatch" error when I "Set aPane = ..." in the following:
 
With DockingPaneManager
        .SetCommandBars Me.cbMain
        Set aPane = .CreatePane(PANE_SHORTCUTBAR, _
            200, 120, DockLeftOf, vbNull)
End With
 
I've tried setting the Neighbor parameter to [empty], and Null, without any change.  The error seems to pop up regardless of what I do.
 
Anybody seen this before?
 
Dan
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 02 October 2006 at 4:24pm
what is aPane declared as?  And in .NET you don't need the "Set" keyword
Back to Top
DDJJ View Drop Down
Senior Member
Senior Member


Joined: 13 December 2004
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote DDJJ Quote  Post ReplyReply Direct Link To This Post Posted: 02 October 2006 at 4:32pm
Never mind.  I figured it out SuperMario (and you were right on point!).
 
Changed my references to "As XtremeDockingPane.Pane" instead of "As Pane".  Must be some reference to "Pane" in the Word object model.
 
Thanks!  ...and I guess I should also gor through any other cj references too!
 
Dan
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.