Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Creating panel dynamically (& OcxState)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Creating panel dynamically (& OcxState)

 Post Reply Post Reply
Author
Message
Joe Calabrese View Drop Down
Newbie
Newbie
Avatar

Joined: 06 June 2007
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Joe Calabrese Quote  Post ReplyReply Direct Link To This Post Topic: Creating panel dynamically (& OcxState)
    Posted: 07 June 2007 at 2:06pm
I want to create Dockable Panels dynamically in code from a factory class, and then pass the objects to the UI when needed.  So I tried copying some of the code that was normally generated when the control is dragged into a UI form.  That approach isn't working yet.
 
Does anyone have experience creating Dockable panels completely in a separate .NET class, or perhaps have sample code?
 
One thought I have is that there is an undocumented property in AxXtremeDockingPane.AxDockingPane called "OcxState" that shows up in a form when the control is dragged in.  The normal code generated is this ...
 
DockingPaneManager.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("DockingPaneManager.OcxState")));
 
I plugged this code into the separate class, but the debugger stops at this line, saying that an object reference is not set to an instance of an object. 
 
I'm not sure what needs to be instantiated here.  Any suggestions?
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: 08 June 2007 at 1:21am
Hello,
This line can be skipped. Delete it.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.109 seconds.