We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How save items using DockingManager control - Visual Basic

Hello everyone

How save the state of my project using DockingManager control?

I tried to save and load  the project using:

Me.dockingManager1.SaveDockState (Serializer) - Close Button

Me.dockingManager1.LoadDockState (serializer); - button "Carregar"

but is not working

How can save the position of the elements and whenever the user enters  in program, the elements (panel and form) will be in the same position.

Attachment: DockingManager_9c869f34.rar

7 Replies

UN Unknown Syncfusion Team January 3, 2020 08:36 AM UTC

Hi Igor, 

Thanks for contacting Syncfusion support. 

We have checked your query “Load and Save does not work in DockingManager”. In your sample you are adding panels to DockingManager children collection during runtime by button click. So when the application is closed, the panels in DockingManager children collection are cleared. Therefore when you load the saved file after re-opening the application , it has the saved information of panels regarding position, height etc.. but it won’t add panels in  DockingManager children collection. Please load the saved file after adding panels in DockingManager, and it works properly. Please refer the below video for the same. 


Regards, 
Niranjan kumar 



IG Igor January 7, 2020 12:55 AM UTC

hi Niranjan,

thankyou for answer.


I was solving my problem and I just forgot to reply your tip 

helped me lot 



UN Unknown Syncfusion Team January 7, 2020 03:55 AM UTC

Hi Igor, 

Thanks for your update. 

Please let us know if you require further assistance regarding this query. We will be happy to assist you . 

Regards, 
Niranjan Kumar 



IG Igor January 7, 2020 06:03 PM UTC

thanks Niranjan,

I have one more question.

How can i control the size of an form inside an panel?

So if i maximize or minimize they will 
Adapt (Like the Anchor Property)


UN Unknown Syncfusion Team January 8, 2020 01:54 PM UTC

Hi Igor, 

Thanks for your update. 

To control the form size inside the panel set the Dock properties value of forms to Fill value. Therefore the forms size are updated when the panel re-sizes. Please refer the below code snippet for the same. If your requirement differs please let us know. 

C#: 
form1.Dock = DockStyle.Fill 

Regards, 
Niranjan Kumar 
 



IG Igor January 8, 2020 04:50 PM UTC

Niranjan,

thanks by support my problem is solved


UN Unknown Syncfusion Team January 9, 2020 04:05 AM UTC

Hi Igor, 

Thanks for your update. 

We will be happy to assist you further if you have any queries.  


Regards, 
Niranjan Kumar 


Loader.
Live Chat Icon For mobile
Up arrow icon