Print Page | Close Window

Creating panel dynamically (& OcxState)

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=7327
Printed Date: 31 January 2025 at 11:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Creating panel dynamically (& OcxState)
Posted By: Joe Calabrese
Subject: Creating panel dynamically (& OcxState)
Date 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?



Replies:
Posted By: Oleg
Date Posted: 08 June 2007 at 1:21am
Hello,
This line can be skipped. Delete it.


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



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