Attach Form to a Pane |
Post Reply |
Author | |
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
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
|
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
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 |
|
chrisABC
Senior Member Joined: 05 June 2008 Status: Offline Points: 258 |
Post Options
Thanks(0)
|
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
|
|
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 |