Creating panel dynamically (& OcxState) |
Post Reply |
Author | |
Joe Calabrese
Newbie Joined: 06 June 2007 Status: Offline Points: 6 |
Post Options
Thanks(0)
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?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
This line can be skipped. Delete it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |