Print Page | Close Window

Attach Form to a Pane

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=11220
Printed Date: 25 June 2024 at 10:05pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Attach Form to a Pane
Posted By: chrisABC
Subject: Attach Form to a Pane
Date Posted: 26 June 2008 at 7:25pm
Using the DockingPane control I can attach a form to a Pane by setting the form's .hwnd to the Pane.Handle during the _AttachPane event.

But is there any other way to do this?
Or can it only be done by this Event?


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



Replies:
Posted By: ijwelch
Date Posted: 26 June 2008 at 8:32pm
You can set the .Handle property of the pane to the hWnd of the form (or picturebox) at any time after it's been created.

So to create and attach form:

Dim A As Pane
Set A = DockingPaneManager.CreatePane(1, 200, 120, DockLeftOf)
A.Title = "Pane A"
A.Handle = Form1.hWnd




Posted By: chrisABC
Date Posted: 27 June 2008 at 5:51am
Thanks, that is good.

(I thought I'd tried it without success, but if I know it should work then I will try harder).


-------------
Chris (Manchester, UK) -- www.abc6.co.uk ---- Using CodeJock ActiveX Suite 13.1.0 with Windows8, VB6 SP6



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