Possible Bug in DockingPane |
Post Reply |
Author | |
DDJJ
Senior Member Joined: 13 December 2004 Status: Offline Points: 143 |
Post Options
Thanks(0)
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
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
what is aPane declared as? And in .NET you don't need the "Set" keyword
|
|
DDJJ
Senior Member Joined: 13 December 2004 Status: Offline Points: 143 |
Post Options
Thanks(0)
|
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
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |