Print Page | Close Window

DestroyPane Problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=3709
Printed Date: 02 July 2024 at 9:01am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: DestroyPane Problem
Posted By: jcollier
Subject: DestroyPane Problem
Date 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



Replies:
Posted By: Oleg
Date Posted: 28 February 2006 at 8:05am

Hi,

instead

frmParent.DockingPaneManager.DestroyPane (a)

use

frmParent.DockingPaneManager.DestroyPane a

:)



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: jcollier
Date Posted: 28 February 2006 at 8:49am
Wow.  How fried was I?

Thanks!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net