Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - DestroyPane Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

DestroyPane Problem

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


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Topic: DestroyPane Problem
    Posted: 27 February 2006 at 5:02pm
I am trying to destroy a pane with a command button on the form that is on that pane.  I have the following code:

Dim a As Pane
   
Set a = frmParent.DockingPaneManager.FindPane(3)
frmParent.DockingPaneManager.DestroyPane (a)


I keep getting a type mismatch error and i'm not sure why.  Can anyone help?

Thanks
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2006 at 8:05am

Hi,

instead

frmParent.DockingPaneManager.DestroyPane (a)

use

frmParent.DockingPaneManager.DestroyPane a

:)

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2006 at 8:49am
Wow.  How fried was I?

Thanks!
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.156 seconds.