DockingPane in MDI Child Form :NET Dessapear |
Post Reply |
Author | ||
charlitos2
Groupie Joined: 28 March 2008 Location: Peru Status: Offline Points: 22 |
Post Options
Thanks(0)
Posted: 18 June 2013 at 1:10am |
|
Hello friends,
I just do an aplicattion with MDI child forms, and I follow the instrucctions about create panel inside a MDI child form, but, when I run and try to move any panel, this dissapear, or qhe I create a nwe MDI child Form, last one content panel dissapear. Please help me to solution this problem, because I try in the new released version 16.2 and the problem is same. PD. This problem is when Main Form content a CommadBar control I jus used VB.NET 2010 Test in CJ Activex 15.3.1 and 16.2 Windows 7
|
||
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
|
Could you upload a small sample shell which shows the layout? Or possibly a picture describing it? Do you use aligned controls in the MDI form?
|
||
charlitos2
Groupie Joined: 28 March 2008 Location: Peru Status: Offline Points: 22 |
Post Options
Thanks(0)
|
|
Hi friend,
Yes i got a new sample with this trouble, the details inside the form1.vb is anything I doit wrong?? |
||
Xander75
Senior Member Joined: 26 April 2007 Status: Offline Points: 353 |
Post Options
Thanks(0)
|
|
Hi,
I have the same issue in C#.Net within a Child Form. I noticed that all appears to be fine with the DockingPane object when the form is opened, however when I open another form and go back to the first form with the docking panes the Action event no longer seems to work! It seems as though the Action event has disconnected itself. Therefore when I hide and show the panes they don't repaint correctly and the only way I can get this to repaint is by calling the RecalcLayout() method in a timer object after this has been created but this is not the best way to resolve this. Can anyone from Codejock please check this out? I have sent in a support ticket too as I need this resolved rather urgently. EDIT: I have since discovered that this appears to be fine on several forms that use Docking Panes, the form I am having an issue with contains the TrackControl object. The code is no different from every other form yet the one with the TrackControl causes the issue. |
||
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6) |
||
Xander75
Senior Member Joined: 26 April 2007 Status: Offline Points: 353 |
Post Options
Thanks(0)
|
|
Just a quick update on this, forgot to do so quite some time ago...
I have resolved this issue. It appears that you cannot use the DockingPaneManager control within C#.Net the same way as you would in VB due to how the .Net forms initialise. So to resolve this I had to put the initialise code for the docking pane into a reusable method for building a DockingPaneManager (not easy if you're not too sure what you're doing) and this could then be added to the load event. Works everytime now without any issues whatsoever. See the code below:
How to use this:
You need to pass the Form instance of which you are adding the DockingPane to and that's all. |
||
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (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 |