Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Attach Form to a Pane
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Attach Form to a Pane

 Post Reply Post Reply
Author
Message
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post Topic: Attach Form to a Pane
    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
Back to Top
ijwelch View Drop Down
Senior Member
Senior Member


Joined: 20 June 2006
Status: Offline
Points: 262
Post Options Post Options   Thanks (0) Thanks(0)   Quote ijwelch Quote  Post ReplyReply Direct Link To This Post 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


Back to Top
chrisABC View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 June 2008
Status: Offline
Points: 258
Post Options Post Options   Thanks (0) Thanks(0)   Quote chrisABC Quote  Post ReplyReply Direct Link To This Post 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
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.172 seconds.